main.js 462 B

123456789101112131415161718192021222324
  1. import App from './App';
  2. // import './styles/index.css';
  3. // import './static/icon/iconfont.css';
  4. import store from './store'
  5. // import './libs/permission.js'
  6. // #ifndef VUE3
  7. import Vue from 'vue'
  8. Vue.config.productionTip = false
  9. App.mpType = 'app'
  10. const app = new Vue({
  11. ...App,
  12. store
  13. })
  14. app.$mount()
  15. // #endif
  16. // #ifdef VUE3
  17. import { createSSRApp } from 'vue'
  18. export function createApp() {
  19. const app = createSSRApp(App)
  20. return {
  21. app
  22. }
  23. }
  24. // #endif