ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[Bug] webdev同步合并覆盖问题
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
使用webdav同步功能,即使本地修改配置,点击同步,都会被远端配置覆盖,看上去像是 [mergeWithUpdate](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/blame/ed88619623e5ebd7638958352713a306d26949cc/app/utils/sync.ts#L151) 代码的问题,我尝试修改并解决了覆盖问题 [https://github.com/EvilMouth/ChatGPT-Next-Web/commit/fdcc19a24aab23c5d6ee464d9986d9ae155d7e41](https://github.com/EvilMouth/ChatGPT-Next-Web/commit/fdcc19a24aab23c5d6ee464d9986d9ae155d7e41)
**To Reproduce**
Steps to reproduce the behavior:
1. 前往设置页
2. 配置好webdav,假设远端已经有一份备份
3. 修改本地某一项配置,比如发送键从 Meta+Enter 改为 Enter
4. 点击同步
5. 出现错误case:远端的配置覆盖本地配置,发送键被覆盖回 Meta+Enter
**Expected behavior**
本地配置的修改时间比远端新,应该覆盖远端的配置
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.