yuanhao
2025-06-04 35dab133f3085a6bce2f045d2d28605aa64e8e61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import App from './App'
import uView from 'uview-ui';
import store from '@/store'
import { config } from '@/common/config.js'
// 注册全局组件
import MescrollMixin from '@/components/mescroll-uni/mescroll-mixins.js';
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.mixin(MescrollMixin)
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js');
Vue.mixin(vuexStore);
Vue.use(uView);
//全局数据字典
import dict from '@/common/dict';
Vue.use(dict);
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
Vue.prototype.config = config
App.mpType = 'app'
const app = new Vue({
    store,
  ...App
})
import httpInterceptor from '@/common/http.js'
Vue.use(httpInterceptor, app)
app.$mount()
// #endif
 
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif