fix(project): fix bug

This commit is contained in:
zhangheng
2026-02-24 15:34:05 +08:00
parent 8389a9bfcd
commit 52b1a627e1
12 changed files with 49 additions and 203 deletions

View File

@@ -8,8 +8,6 @@ const initUserInfo = {
user_id: null,
user_name: null,
user_password: null,
token: null,
refresh_token: null,
detailInfo: null,
}
@@ -19,21 +17,11 @@ export const usePermissionStore = create(
user_id: null,
user_name: null,
user_password: null,
token: null,
refresh_token: null,
detailInfo: null,
setUserInfo: ({
user_id,
user_name,
token,
refresh_token,
detailInfo,
}: any) =>
setUserPermissionInfo: ({ user_id, user_name, detailInfo }: any) =>
set({
user_id,
user_name,
token,
refresh_token,
detailInfo,
user_password: usePermissionStore.getState().user_password,
}),