更改附件地址
parent
6ea70cf5ae
commit
efeda5659a
1
App.vue
1
App.vue
|
@ -2,6 +2,7 @@
|
||||||
export default {
|
export default {
|
||||||
onLaunch: function () {
|
onLaunch: function () {
|
||||||
console.log('App Launch')
|
console.log('App Launch')
|
||||||
|
this.$store.dispatch('setfilePath', 'https://skqhdg.porthebei.com:9004/file/');
|
||||||
this.isLogin()
|
this.isLogin()
|
||||||
},
|
},
|
||||||
onShow: function () {
|
onShow: function () {
|
||||||
|
|
|
@ -96,7 +96,7 @@ export default {
|
||||||
const keydataVal = jsencrypt.encrypt('qdkjchina' + this.form.userName + ',qd,' + this.form.userPwd)
|
const keydataVal = jsencrypt.encrypt('qdkjchina' + this.form.userName + ',qd,' + this.form.userPwd)
|
||||||
let resData = await submitLogin({'KEYDATA':keydataVal});
|
let resData = await submitLogin({'KEYDATA':keydataVal});
|
||||||
await this.$store.dispatch('setUserInfo', resData);
|
await this.$store.dispatch('setUserInfo', resData);
|
||||||
await this.$store.dispatch('setfilePath', '');
|
// await this.$store.dispatch('setfilePath', '');
|
||||||
uni.$u.route({
|
uni.$u.route({
|
||||||
url: '/pages/index/index',
|
url: '/pages/index/index',
|
||||||
type: 'reLaunch'
|
type: 'reLaunch'
|
||||||
|
|
|
@ -31,7 +31,7 @@ const store = new Vuex.Store({
|
||||||
state.userInfo = userInfo
|
state.userInfo = userInfo
|
||||||
} ,
|
} ,
|
||||||
setfilePath(state, filePath) {
|
setfilePath(state, filePath) {
|
||||||
state.filePath = 'https://skqhdg.porthebei.com:9004/file/'
|
state.filePath = filePath
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
|
|
Loading…
Reference in New Issue