main.js
@@ -2,6 +2,7 @@ import Vue from 'vue' import uView from '@/uni_modules/uview-ui'; import '@/api/constant.js'; import store from './store' uni.$u.config.unit = 'rpx' Vue.use(uView) @@ -13,6 +14,7 @@ Vue.prototype.$reqGet = reqGet; Vue.prototype.$reqPost = reqPost; Vue.prototype.$store = store Vue.config.productionTip = false @@ -20,6 +22,7 @@ App.mpType = 'app' const app = new Vue({ store, ...App }) app.$mount()