From efeda5659a1b124826ab3c5eadd226f0a024f89a Mon Sep 17 00:00:00 2001 From: LiuJiaNan Date: Fri, 13 Dec 2024 08:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=99=84=E4=BB=B6=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 1 + pages/login/login.vue | 2 +- store/index.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/App.vue b/App.vue index 1d4b2e1..8cf4a24 100644 --- a/App.vue +++ b/App.vue @@ -2,6 +2,7 @@ export default { onLaunch: function () { console.log('App Launch') + this.$store.dispatch('setfilePath', 'https://skqhdg.porthebei.com:9004/file/'); this.isLogin() }, onShow: function () { diff --git a/pages/login/login.vue b/pages/login/login.vue index 329fa1a..0fbb5e7 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -96,7 +96,7 @@ export default { const keydataVal = jsencrypt.encrypt('qdkjchina' + this.form.userName + ',qd,' + this.form.userPwd) let resData = await submitLogin({'KEYDATA':keydataVal}); await this.$store.dispatch('setUserInfo', resData); - await this.$store.dispatch('setfilePath', ''); + // await this.$store.dispatch('setfilePath', ''); uni.$u.route({ url: '/pages/index/index', type: 'reLaunch' diff --git a/store/index.js b/store/index.js index cb1fd35..c6e333d 100644 --- a/store/index.js +++ b/store/index.js @@ -31,7 +31,7 @@ const store = new Vuex.Store({ state.userInfo = userInfo } , setfilePath(state, filePath) { - state.filePath = 'https://skqhdg.porthebei.com:9004/file/' + state.filePath = filePath } }, actions: {