【update】-token过期 退出登录的时候 不调用接口

This commit is contained in:
fengchenchen
2023-08-23 18:23:53 +08:00
parent 6b677aba4b
commit 9289bce141
5 changed files with 25 additions and 6 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ const err = (error) => {
okText: '重新登录',
mask: false,
onOk: () => {
store.dispatch('Logout').then(() => {
store.dispatch('LogoutNotRequest').then(() => {
Vue.ls.remove(ACCESS_TOKEN)
try {
let path = window.document.location.pathname
@@ -147,7 +147,7 @@ function blobToJson(data) {
okText: '重新登录',
mask: false,
onOk: () => {
store.dispatch('Logout').then(() => {
store.dispatch('LogoutNotRequest').then(() => {
Vue.ls.remove(ACCESS_TOKEN)
window.location.reload()
})