This commit is contained in:
Zyronon
2025-12-10 02:10:09 +08:00
parent 76cb2d9a25
commit bb3c7affed
5 changed files with 22 additions and 8 deletions

View File

@@ -46,7 +46,7 @@ export function getDefaultArticle(val: Partial<Article> = {}): Article {
audioFileId: '',
lrcPosition: [],
questions: [],
nameList:[],
nameList: [],
...cloneDeep(val)
}
}
@@ -74,6 +74,7 @@ export function getDefaultDict(val: Partial<Dict> = {}): Dict {
is_default: false,
update: false,
cover: '',
sync: false,
...val,
words: shallowReactive(val.words ?? []),

View File

@@ -180,6 +180,7 @@ export interface Dict extends DictResource {
is_default?: boolean
update?: boolean
cover?: string
sync?: boolean
}
export interface ArticleItem {