update article dict

This commit is contained in:
zyronon
2023-12-02 23:58:55 +08:00
parent e789822da4
commit 834fce25e6
4 changed files with 89 additions and 64 deletions

View File

@@ -21,6 +21,7 @@ import {MessageBox} from "@/utils/MessageBox.tsx";
import {syncMyDictList} from "@/hooks/dict.ts";
import {useWindowClick} from "@/hooks/event.ts";
import ArticleList from "@/components/list/ArticleList.vue";
import * as copy from "copy-to-clipboard";
const store = useBaseStore()
const settingStore = useSettingStore()
@@ -201,6 +202,10 @@ function exportData(val: {
type: string,
data?: Article
}) {
// return copy( JSON.stringify(cloneDeep(runtimeStore.editDict.articles).map(v=>{
// delete v.sections
// return v
// })))
const {type, data} = val
let list = []
let filename = ''

View File

@@ -116,7 +116,7 @@ export const useBaseStore = defineStore('base', {
},
],
current: {
index: 4,
index: 3,
// dictType: DictType.article,
// index: 0,
practiceType: DictType.word,