平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
728 B

  1. import App from './App'
  2. import Vue from 'vue'
  3. import mixins from '@/common/mixins.vue'
  4. Vue.mixin(mixins)
  5. // 引入vuex
  6. const vuexStore = require("@/store/$u.mixin.js");
  7. Vue.mixin(vuexStore);
  8. // 引入uview-ui
  9. import uView from "uview-ui";
  10. Vue.use(uView);
  11. // #ifndef VUE3
  12. import './uni.promisify.adaptor'
  13. Vue.config.productionTip = false
  14. App.mpType = 'app'
  15. const app = new Vue({
  16. ...App
  17. })
  18. app.$mount()
  19. // #endif
  20. // #ifdef VUE3
  21. import { createSSRApp } from 'vue'
  22. export function createApp() {
  23. const app = createSSRApp(App)
  24. return {
  25. app
  26. }
  27. }
  28. // #endif
  29. // 添加http实例
  30. import http from '@/http/api.js'
  31. Vue.prototype.$http = http
  32. // 公共函数
  33. import globalFunc from '@/utils/func.js'
  34. Vue.use(globalFunc, app);