fix:修复板块权限

This commit is contained in:
Xwen
2023-12-21 23:37:42 +08:00
parent 024ced4b3e
commit 732cd3798b
4 changed files with 20 additions and 16 deletions

View File

@@ -75,7 +75,7 @@ import useConfigStore from "@/stores/config";
import useAuths from "@/hooks/useAuths";
import { Session } from "@/utils/storage";
const { getToken } = useAuths();
const { getToken, clearStorage } = useAuths();
const configStore = useConfigStore();
const router = useRouter();
const route = useRoute();
@@ -108,6 +108,7 @@ const enterProfile = () => {
router.push("/profile");
};
const toLogin = () => {
clearStorage();
Session.set("currentPath", route.path);
router.push("/login");
};