main.js 584 B

123456789101112131415161718192021222324252627282930313233
  1. import App from './App'
  2. // import c_navbar from './components/c_navbar.vue'
  3. // #ifndef VUE3
  4. import Vue from 'vue'
  5. import './uni.promisify.adaptor'
  6. import i18n from "./common/lang"
  7. // Vue.component('c_navbar',c_navbar)
  8. Vue.config.productionTip = false
  9. App.mpType = 'app'
  10. const app = new Vue({
  11. ...App
  12. })
  13. app.use(i18n)
  14. app.$mount()
  15. // #endif
  16. // #ifdef VUE3
  17. import { createSSRApp } from 'vue'
  18. import i18n from "./common/lang"
  19. export function createApp() {
  20. const app = createSSRApp(App)
  21. app.use(i18n)
  22. //app.component('c_navbar',c_navbar)
  23. return {
  24. app
  25. }
  26. }
  27. // #endif