From 81b5e897c13028a20c565e7ea4ad3c91f12a2063 Mon Sep 17 00:00:00 2001 From: Zyronon Date: Mon, 15 Sep 2025 15:24:25 +0800 Subject: [PATCH] Update DictDetail.vue --- src/pages/pc/word/DictDetail.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/pc/word/DictDetail.vue b/src/pages/pc/word/DictDetail.vue index e0ce3254..79f31473 100644 --- a/src/pages/pc/word/DictDetail.vue +++ b/src/pages/pc/word/DictDetail.vue @@ -73,7 +73,7 @@ let studyLoading = $ref(false) function syncDictInMyStudyList(study = false) { _nextTick(() => { let rIndex = base.word.bookList.findIndex(v => v.id === runtimeStore.editDict.id) - let temp = cloneDeep(runtimeStore.editDict); + let temp = runtimeStore.editDict; if (!temp.custom && ![DictId.wordKnown, DictId.wordWrong, DictId.wordCollect].includes(temp.id)) { temp.custom = true temp.id += '_custom' @@ -265,6 +265,7 @@ function importData(e) { let data = null try { data = convertToWord({ + id : nanoid(6), word: v['单词'], phonetic0: v['音标①'] ?? '', phonetic1: v['音标②'] ?? '',