after installing npm I vue-awesome-mui
, I introduced
import Mui from "vue-awesome-mui";
Vue.use (Mui);
and then write this wrong in index.html.
prompts Uncaught ReferenceError: mui is not defined
<script>
mui.init({ // Uncaught ReferenceError: mui is not defined`
keyEventBind: {
backbutton: true //back
}
});
// //
// //:1;
var first = null;
mui.back = function() {
//
if (!first) {
first = new Date().getTime(); //
// mui.toast(""); //
history.go(-1); //
setTimeout(function() {
//1s
first = null;
}, 1000);
} else {
if (new Date().getTime() - first < 1000) {
//1s
plus.runtime.quit(); //app
}
}
};
</script>