This commit is contained in:
zyronon
2023-11-16 02:21:16 +08:00
parent 1d10d70f23
commit b72d7e8677
7 changed files with 346 additions and 299 deletions

View File

@@ -18,11 +18,9 @@ const {setTheme} = useTheme()
watch(store.$state, (n: BaseState) => {
let data: BaseState = cloneDeep(n)
data.myDicts.map((v: any) => {
if (v.type === DictType.word && v.translateLanguage === 'common') {
v.originWordsSimple = v.originWords.map(s => s.name)
v.originWords = []
}
data.myDictList.map((v: any) => {
if (v.type === DictType.word) v.originWords = []
if (v.type === DictType.article) v.articles = []
v.words = []
v.chapterWords = []
})