token退出删除

This commit is contained in:
2024-03-18 13:30:27 +08:00
parent 221dc8d033
commit 4bf4be18b8
4 changed files with 4 additions and 3 deletions

View File

@@ -71,7 +71,7 @@
})
},
Quit () {
this.$store.dispatch('delUserInfo')
this.$store.dispatch('delUserInfo', '')
uni.redirectTo({
url: '/pages/login/login'
})

View File

@@ -69,7 +69,7 @@ const request = (params) => {
content: res[1].data.message,
showCancel: false
})
store.dispatch('delUserInfo')
store.dispatch('delUserInfo', '')
uni.redirectTo({
url: '/pages/login/login'
})

View File

@@ -65,7 +65,7 @@ const request1 = (params) => {
content: res[1].data.message,
showCancel: false
})
store.dispatch('delUserInfo')
store.dispatch('delUserInfo', '')
uni.redirectTo({
url: '/pages/login/login'
})

View File

@@ -63,6 +63,7 @@ const mutations = {
},
[types.DEL_USER_INFO] (state, res) {
state.userInfo = res
state.saveToken = res
},
[types.SAVE_TOKEN] (state, res) {
state.saveToken = res