main.js 507 B

1234567891011121314151617181920212223242526
  1. /** @format */
  2. import Vue from "vue";
  3. import App from "./App";
  4. import store from "./store"; // store
  5. import plugins from "./plugins"; // plugins
  6. import "./permission"; // permission
  7. import uView from "@/uni_modules/uview-ui";
  8. import config from "./config";
  9. Vue.use(plugins);
  10. Vue.config.productionTip = false;
  11. Vue.prototype.$store = store;
  12. App.mpType = "app";
  13. const app = new Vue({
  14. ...App,
  15. });
  16. Vue.prototype.$baseUrl = config.baseUrl;
  17. // main.js
  18. Vue.use(uView);
  19. app.$mount();