Explorar o código

fix: 接口报错session过期时,调用过期登录接口

zhouyuhao hai 11 meses
pai
achega
2f34d35cb6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/axios.ts

+ 1 - 1
src/utils/axios.ts

@@ -60,7 +60,7 @@ class HttpAxios {
         sessionStorage.clear()
         router.push('/login')
         const userStore = useUserStore()
-        userStore.logout(false)
+        userStore.logout()
         ElMessage.warning({
           message: 'Please log in to use this feature.',
           grouping: true