修改: app/store/access.ts

This commit is contained in:
glay 2024-11-06 09:09:49 +08:00
parent ca17e90c52
commit c55cea5853

View File

@ -288,7 +288,11 @@ export const useAccessStore = createPersistStore(
return res;
})
.then((res: DangerConfig) => {
console.log("[Config] got config from server", res);
set(() => ({ ...res }));
return res;
})
.then((res: Partial<AccessState>) => {
console.log("[Config] got config from server", res);
// Encrypt Bedrock-related sensitive data before storing