From 64b432916af9c9218ab3f3eca614e26c542142ae Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 十一月 2023 15:47:13 +0800
Subject: [PATCH] bug
---
minipro_standard/main.js | 36 ++++++++++++++++--------------------
1 files changed, 16 insertions(+), 20 deletions(-)
diff --git a/minipro_standard/main.js b/minipro_standard/main.js
index b601077..c988b0c 100644
--- a/minipro_standard/main.js
+++ b/minipro_standard/main.js
@@ -1,34 +1,30 @@
import Vue from 'vue'
import App from './App'
-
-// vuex
-import store from './store'
import mixin from './common/mixin'
-// 寮曞叆鍏ㄥ眬uView
+// 寮曞叆鍏ㄥ眬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'
-Vue.use(uView)
-
-// #ifdef MP
-// 寮曞叆uView瀵瑰皬绋嬪簭鍒嗕韩鐨刴ixin灏佽
+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,
+ ...App
+})
+require('./util/request/index')(app)
+// 鑾峰彇寰呭姙鏁伴噺
+// store.dispatch('getUpcomingNum')
+
app.$mount()
\ No newline at end of file
--
Gitblit v1.9.3