main.js 468 B

12345678910111213141516171819202122232425262728
  1. import App from './App'
  2. import https from './util/api.js'
  3. // #ifndef VUE3
  4. import Vue from 'vue'
  5. Vue.config.productionTip = false
  6. App.mpType = 'app'
  7. const app = new Vue({
  8. ...App
  9. })
  10. app.$mount()
  11. import NavBar from "@/components/navbar/navbar.vue"
  12. Vue.component('navbar',NavBar)
  13. Vue.prototype.$http=https;
  14. // #endif
  15. // #ifdef VUE3
  16. import { createSSRApp } from 'vue'
  17. export function createApp() {
  18. const app = createSSRApp(App)
  19. return {
  20. app
  21. }
  22. }
  23. // #endif