uni-events-helper-wx
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

3 years ago
3 years ago
3 years ago
  1. import Vue from "vue";
  2. import App from "./App";
  3. import {
  4. router,
  5. RouterMount
  6. } from "@/nxTemp/router";
  7. import store from "@/nxTemp/store";
  8. // import uView from "@/uview-ui";
  9. import nxTemp from "@/nxTemp";
  10. async function bootstrap() {
  11. App.mpType = "app";
  12. //引入路由
  13. Vue.use(router);
  14. // 引入全局uView
  15. // Vue.use(uView);
  16. // 加载nxTemp
  17. Vue.use(nxTemp);
  18. const app = new Vue({
  19. store,
  20. ...App
  21. });
  22. // #ifdef H5
  23. RouterMount(app, router, "#app");
  24. // #endif
  25. // #ifndef H5
  26. app.$mount();
  27. // #endif
  28. }
  29. bootstrap();