mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 05:53:42 +08:00
fix: 优化云同步功能,使access配置按更新时间合并,解决自定义模型配置在同步后丢失的问题
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user