main.js 585 B

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