{{ article.title }}
++ {{ article.text }} +
+diff --git a/src/pages/dict/components/ArticleDetail.vue b/src/pages/dict/components/ArticleDetail.vue index a8c63e1b..364685d6 100644 --- a/src/pages/dict/components/ArticleDetail.vue +++ b/src/pages/dict/components/ArticleDetail.vue @@ -7,13 +7,19 @@ import {useRuntimeStore} from "@/stores/runtime.ts"; import ArticleList3 from "@/components/list/ArticleList3.vue"; import {$ref} from "vue/macros"; import VirtualWordList2 from "@/components/list/VirtualWordList2.vue"; +import {cloneDeep} from "lodash-es"; +import {Article, DefaultArticle, TranslateType} from "@/types.ts"; const runtimeStore = useRuntimeStore() let chapterIndex = $ref(0) +let article: Article = $ref(cloneDeep(DefaultArticle)) function handleCheckedChange(val) { chapterIndex = val.index + article = val.data } + + @@ -91,6 +97,32 @@ function handleCheckedChange(val) { +
{{ article.title }}
++ {{ article.text }} +
+{{ article.titleTranslate }}
++ {{ article.textCustomTranslate }} +
+