bug
jiangping
2023-11-07 64b432916af9c9218ab3f3eca614e26c542142ae
minipro_standard/main.js
对比新文件
@@ -0,0 +1,30 @@
import Vue from 'vue'
import App from './App'
import mixin from './common/mixin'
// 寮曞叆鍏ㄥ眬uView
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// vuex
import store from './store'
Vue.prototype.$store = store
store.dispatch('getHeight')
Vue.config.productionTip = false
App.mpType = 'app'
// console.log(uni.$u);
// #ifdef MP
// 寮曞叆uView瀵瑰皬绋嬪簭鍒嗕韩鐨刴ixin灏佽
const mpShare = require('@/uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif
Vue.mixin(mixin)
// 寮曞叆璇锋眰灏佽
const app = new Vue({
   store,
  ...App
})
require('./util/request/index')(app)
// 鑾峰彇寰呭姙鏁伴噺
// store.dispatch('getUpcomingNum')
app.$mount()