From bf34b055ceda6be7906b2ec22569901ebdac3062 Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 29 Jul 2025 00:49:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0book=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/pc/components/Book.vue | 13 +++++++++++-- src/pages/pc/word/DictDetail.vue | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/pc/components/Book.vue b/src/pages/pc/components/Book.vue index cdd30822..2f53a1ef 100644 --- a/src/pages/pc/components/Book.vue +++ b/src/pages/pc/components/Book.vue @@ -20,7 +20,7 @@ const progress = $computed(() => { diff --git a/src/pages/pc/word/DictDetail.vue b/src/pages/pc/word/DictDetail.vue index cd617f48..2182a52b 100644 --- a/src/pages/pc/word/DictDetail.vue +++ b/src/pages/pc/word/DictDetail.vue @@ -174,7 +174,10 @@ function syncDictInMyStudyList(study = false) { let rIndex = base.word.bookList.findIndex(v => v.id === runtimeStore.editDict.id) let temp = cloneDeep(runtimeStore.editDict); console.log(temp) - temp.custom = true + if (!temp.custom) { + temp.custom = true + temp.id += '_custom' + } temp.length = temp.words.length if (rIndex > -1) { base.word.bookList[rIndex] = temp