This commit is contained in:
2025-04-21 10:30:45 +08:00
parent 9731d104f6
commit e89510d7c0
14 changed files with 308 additions and 120 deletions

View File

@@ -42,6 +42,7 @@ export const useSystemStore = defineStore("SystemStore", () => {
redirect: `/home/${routes[0].path}`,
children: []
});
isRoot.value = false;
await router.replace(router.currentRoute.value.fullPath);
}

View File

@@ -36,6 +36,8 @@ export const useUserStore = defineStore("UserStore", () => {
const logout = async () => {
isLogin.value = false;
userInfo.value = null;
token.value = null;
const {clearRouter} = useSystemStore();
await clearRouter();
}