src/utils/request.js
@@ -79,7 +79,8 @@ if (token) { store.dispatch('Logout').then(() => { setTimeout(() => { window.location.reload() router.push({ path: '/user/login' }); // window.location.reload() }, 1500) }) } @@ -169,7 +170,10 @@ onOk: () => { store.dispatch('Logout').then(() => { Vue.ls.remove(ACCESS_TOKEN) window.location.reload() setTimeout(() => { router.push({ path: '/user/login' }); // window.location.reload() }, 1500) }) } })