perf: 同步完整版代码

This commit is contained in:
xiaoxian521
2022-04-08 12:05:46 +08:00
parent bc8a0f3b35
commit 2bac78478c
10 changed files with 59 additions and 29 deletions

View File

@@ -7,6 +7,7 @@ import { remainingPaths } from "/@/router";
import { transformI18n } from "/@/plugins/i18n";
import { storageSession } from "/@/utils/storage";
import { useAppStoreHook } from "/@/store/modules/app";
import { useUserStoreHook } from "/@/store/modules/user";
import { useEpThemeStoreHook } from "/@/store/modules/epTheme";
export function useNav() {
@@ -38,8 +39,7 @@ export function useNav() {
// 退出登录
function logout() {
storageSession.removeItem("info");
router.push("/login");
useUserStoreHook().logOut();
}
function backHome() {