feat:修改数据结构
This commit is contained in:
@@ -56,10 +56,9 @@ onMounted(() => {
|
||||
isAdd = true
|
||||
}else {
|
||||
if (!runtimeStore.editDict.id) {
|
||||
router.push("/")
|
||||
router.push("/article")
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
function formClose() {
|
||||
|
||||
@@ -35,7 +35,7 @@ let list = $computed({
|
||||
|
||||
onMounted(() => {
|
||||
if (!runtimeStore.editDict.id) {
|
||||
router.push("/")
|
||||
router.push("/word")
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user