Skip to content

Commit 3c3b379

Browse files
committed
chore: 加载失败时不保存配置文件
1 parent f3648b5 commit 3c3b379

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MaiChartManager/Front/src/components/ModManager/ConfigEditor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export default defineComponent({
9999
}
100100

101101
watch(() => show.value, async (val) => {
102+
if (configReadErr.value) return
102103
if (!val && config.value) {
103104
try {
104105
await api.SetAquaMaiConfig(config.value)

0 commit comments

Comments
 (0)