| 对比新文件 |
| | |
| | | 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() |