diff --git a/public/sound/key-sounds/快速打字的机械键盘声音.mp3 b/public/sound/key-sounds/机械键盘1.mp3 similarity index 100% rename from public/sound/key-sounds/快速打字的机械键盘声音.mp3 rename to public/sound/key-sounds/机械键盘1.mp3 diff --git a/public/sound/key-sounds/键盘快速打字的声音.mp3 b/public/sound/key-sounds/机械键盘2.mp3 similarity index 100% rename from public/sound/key-sounds/键盘快速打字的声音.mp3 rename to public/sound/key-sounds/机械键盘2.mp3 diff --git a/public/sound/key-sounds/电话打字的声音.mp3 b/public/sound/key-sounds/笔记本键盘.mp3 similarity index 100% rename from public/sound/key-sounds/电话打字的声音.mp3 rename to public/sound/key-sounds/笔记本键盘.mp3 diff --git a/public/sound/key-sounds/老式机械.mp3 b/public/sound/key-sounds/老式机械键盘.mp3 similarity index 100% rename from public/sound/key-sounds/老式机械.mp3 rename to public/sound/key-sounds/老式机械键盘.mp3 diff --git a/src/components/DictListPanel.vue b/src/components/DictListPanel.vue index 3de9da74..e38b86cd 100644 --- a/src/components/DictListPanel.vue +++ b/src/components/DictListPanel.vue @@ -43,7 +43,7 @@ const groupByTranslateLanguage = $computed(() => { data = groupBy(articleList, 'translateLanguage') } else if (currentLanguage === 'my') { data = { - common: store.myDictList.concat([{name: '',} as any]) + common: store.myDictList.concat([{id: '',} as any]) } } else { data = groupBy(groupByLanguage[currentLanguage], 'translateLanguage') @@ -87,6 +87,7 @@ const groupedByCategoryAndTag = $computed(() => { diff --git a/src/components/list/DictGroup.vue b/src/components/list/DictGroup.vue index 905bcdf7..35d79b97 100644 --- a/src/components/list/DictGroup.vue +++ b/src/components/list/DictGroup.vue @@ -8,7 +8,7 @@ import DictList from "@/components/list/DictList.vue"; const props = defineProps<{ category: string, groupByTag: any, - selectDictName: string + selectId: string }>() const emit = defineEmits<{ selectDict: [val: { dict: DictResource, index: number }] @@ -37,7 +37,8 @@ watch(() => props.groupByTag, () => { + :list="list" + :select-id="selectId"/> diff --git a/src/components/list/DictItem.vue b/src/components/list/DictItem.vue index 4942a50a..84ced1a6 100644 --- a/src/components/list/DictItem.vue +++ b/src/components/list/DictItem.vue @@ -20,7 +20,7 @@ const emit = defineEmits<{ class="dict-item anim" :class="active && 'active'" > -