@@ -34,7 +34,8 @@ const handleCode = (code, msg) => {
}
break
case noPermissionCode:
- router.push({ path: '/401' }).catch(() => {})
+ store.dispatch('user/resetAccessToken').catch(() => {})
+ router.push({ path: '/login' }).catch(() => {})
default:
Vue.prototype.$baseMessage(msg || `后端接口${code}异常`, 'error')