diff --git a/src/hooks/dict.ts b/src/hooks/dict.ts index 1942c7bb..8c388236 100644 --- a/src/hooks/dict.ts +++ b/src/hooks/dict.ts @@ -91,7 +91,7 @@ export function useArticleOptions() { export function syncMyDictList(dict: Dict, isCustom = true) { const store = useBaseStore() //任意修改,都将其变为自定义词典 - dict.isCustom = isCustom + dict.custom = isCustom if (isArticle(dict.type)) { dict.length = dict.articles.length } else { diff --git a/src/pages/mobile/components/DictList.vue b/src/pages/mobile/components/DictList.vue index d2a2818f..de8d2f18 100644 --- a/src/pages/mobile/components/DictList.vue +++ b/src/pages/mobile/components/DictList.vue @@ -1,6 +1,5 @@ + + + + + + {{ item?.name }} + {{ item?.description }} + + {{ item?.words?.length }}{{ quantifier }} + + + + + + + + + diff --git a/src/pages/pc/components/list/DictGroup_Mobile.vue b/src/pages/pc/components/list/DictGroup_Mobile.vue deleted file mode 100644 index d1212ddf..00000000 --- a/src/pages/pc/components/list/DictGroup_Mobile.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - {{ item.name }}: - - {{ i }} - - - - - - - - - - - diff --git a/src/pages/pc/components/list/DictItem.vue b/src/pages/pc/components/list/DictItem.vue deleted file mode 100644 index 6022785b..00000000 --- a/src/pages/pc/components/list/DictItem.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - {{ dict.name }} - {{ dict.description }} - - - {{ dict.length + '词' }} - - - - - - - - - - - - - diff --git a/src/pages/pc/components/list/DictList.vue b/src/pages/pc/components/list/DictList.vue index 95e73c57..a006f8eb 100644 --- a/src/pages/pc/components/list/DictList.vue +++ b/src/pages/pc/components/list/DictList.vue @@ -1,10 +1,9 @@