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: {