【update】-token过期 退出登录的时候 不调用接口
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user