Merge remote-tracking branch 'upstream/main'

This commit is contained in:
ZhaoLiu
2023-05-08 10:15:15 +08:00
11 changed files with 513 additions and 20 deletions

View File

@@ -41,6 +41,8 @@ export const useAccessStore = create<AccessControlStore>()(
set(() => ({ token }));
},
isAuthorized() {
get().fetch();
// has token or has code or disabled access control
return (
!!get().token || !!get().accessCode || !get().enabledAccessControl()