fix: 优化云同步功能,使access配置按更新时间合并,解决自定义模型配置在同步后丢失的问题

This commit is contained in:
织梦人
2024-09-05 21:52:25 +08:00
parent ccacfec918
commit 6dc868154d
2 changed files with 9 additions and 3 deletions

View File

@@ -210,7 +210,7 @@ export const useAccessStore = createPersistStore(
})
.then((res: DangerConfig) => {
console.log("[Config] got config from server", res);
set(() => ({ ...res }));
set(() => ({ lastUpdateTime: Date.now(), ...res }));
})
.catch(() => {
console.error("[Config] failed to fetch config");