fix(auth): update token validation method in layout store

This commit is contained in:
2026-02-24 04:32:25 +08:00
parent 3630144fb1
commit c1df9eb5d4
2 changed files with 2 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ export const useLayoutStore = create<LayoutStore>((set, get) => ({
isAdmin: false,
setIsAdmin: (isAdmin) => set({ isAdmin }),
init: async () => {
const token = await queryLogin.getToken()
const token = await queryLogin.checkTokenValid()
if (token) {
const user = await queryLogin.checkLocalUser() as UserInfo;
if (user) {