From 0b2877a4b4bf90bec9bd46b78beedf211263a028 Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123 <819527061@qq.com> Date: 星期二, 19 七月 2022 17:48:11 +0800 Subject: [PATCH] '权限优化' --- main.js | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/main.js b/main.js index 29b062f..06880df 100644 --- a/main.js +++ b/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() -- Gitblit v1.9.1