fix(login): logout

This commit is contained in:
zhangheng
2026-04-13 14:35:18 +08:00
parent 6baeae111e
commit a4b1d07e52
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")