You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
566 B
33 lines
566 B
import Vue from "vue";
|
|
import App from "./App";
|
|
import {
|
|
router,
|
|
RouterMount
|
|
} from "@/nxTemp/router";
|
|
import store from "@/nxTemp/store";
|
|
// import uView from "@/uview-ui";
|
|
import nxTemp from "@/nxTemp";
|
|
|
|
|
|
async function bootstrap() {
|
|
App.mpType = "app";
|
|
//引入路由
|
|
Vue.use(router);
|
|
// 引入全局uView
|
|
// Vue.use(uView);
|
|
// 加载nxTemp
|
|
Vue.use(nxTemp);
|
|
|
|
const app = new Vue({
|
|
store,
|
|
...App
|
|
});
|
|
// #ifdef H5
|
|
RouterMount(app, router, "#app");
|
|
// #endif
|
|
// #ifndef H5
|
|
app.$mount();
|
|
// #endif
|
|
}
|
|
|
|
bootstrap();
|