feat(config): backup v1 file before v2 migration

- Add timestamped backup at `~/.cc-switch/config.v1.backup.<ts>.json`
- Keep provider files untouched; only cc-switch metadata is backed up
- Remove UI notification plan; backup only as requested
- Update CHANGELOG with migration backup notes
This commit is contained in:
Jason
2025-09-01 10:49:31 +08:00
parent 47b06b7773
commit b00e8de26f
3 changed files with 26 additions and 2 deletions

View File

@@ -167,6 +167,8 @@ export const tauriAPI = {
}
},
// (保留空位,取消迁移提示)
// 选择配置文件Tauri 暂不实现,保留接口兼容性)
selectConfigFile: async (): Promise<string | null> => {
console.warn("selectConfigFile 在 Tauri 版本中暂不支持");