chore: 主动登出不需要带跳转地址

This commit is contained in:
dap 2024-11-25 09:42:27 +08:00
parent 24e889adbe
commit 34a11ce64d
2 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@
- 菜单管理 改为虚拟滚动 - 菜单管理 改为虚拟滚动
- 移除requestClient的一些冗余参数 - 移除requestClient的一些冗余参数
- 主动退出登录(右上角个人选项)不需要带跳转地址
**BUG FIXES** **BUG FIXES**

View File

@ -88,7 +88,10 @@ const avatar = computed(() => {
}); });
async function handleLogout() { async function handleLogout() {
await authStore.logout(); /**
* 主动登出不需要带跳转地址
*/
await authStore.logout(false);
resetRoutes(); resetRoutes();
} }