fix(login): logout

This commit is contained in:
zhangheng
2026-04-13 14:35:27 +08:00
parent 3418d0d2c4
commit e1a5b06cad
2 changed files with 5 additions and 0 deletions

View File

@@ -136,6 +136,7 @@ export default function AppLayout({
const handleLogout = async () => {
useUserStore.getState().removeUserInfo()
usePermissionStore.getState().logout()
process.env.NEXT_PUBLIC_OUTPUT_TYPE === "standalone" &&
(await deleteCookie())
router.push("/login")