feat:修改数据结构

This commit is contained in:
zyronon
2025-07-20 23:16:56 +08:00
parent 8e9821a58a
commit a90365e6a6
5 changed files with 37 additions and 85 deletions

View File

@@ -56,10 +56,9 @@ onMounted(() => {
isAdd = true
}else {
if (!runtimeStore.editDict.id) {
router.push("/")
router.push("/article")
}
}
})
function formClose() {

View File

@@ -35,7 +35,7 @@ let list = $computed({
onMounted(() => {
if (!runtimeStore.editDict.id) {
router.push("/")
router.push("/word")
}
})

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import {getDefaultWord2, ShortcutKey, Word2} from "@/types.ts";
import {getDefaultWord, ShortcutKey, Word} from "@/types.ts";
import VolumeIcon from "@/components/icon/VolumeIcon.vue";
import {useSettingStore} from "@/stores/setting.ts";
import {usePlayBeep, usePlayCorrect, usePlayKeyboardAudio, usePlayWordAudio, useTTsPlayAudio} from "@/hooks/sound.ts";
@@ -9,11 +9,11 @@ import Tooltip from "@/pages/pc/components/Tooltip.vue";
import SentenceHightLightWord from "@/pages/pc/word/components/SentenceHightLightWord.vue";
interface IProps {
word: Word2,
word: Word,
}
const props = withDefaults(defineProps<IProps>(), {
word: () => getDefaultWord2(),
word: () => getDefaultWord(),
})
const emit = defineEmits<{