save
This commit is contained in:
@@ -66,9 +66,16 @@ export function getDefaultDict(val: Partial<Dict> = {}): Dict {
|
||||
perDayStudyNumber: 20,
|
||||
custom: false,
|
||||
complete: false,
|
||||
|
||||
createdBy: '',
|
||||
en_name: '',
|
||||
category_id: null,
|
||||
is_default: false,
|
||||
|
||||
...val,
|
||||
words: shallowReactive(val.words ?? []),
|
||||
articles: shallowReactive(val.articles ?? []),
|
||||
statistics: shallowReactive(val.statistics ?? [])
|
||||
statistics: shallowReactive(val.statistics ?? []),
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,7 +150,6 @@ export type DictResource = {
|
||||
name: string
|
||||
description: string
|
||||
url: string
|
||||
en_name?: string
|
||||
length: number
|
||||
category: string
|
||||
tags: string[]
|
||||
@@ -169,6 +168,11 @@ export interface Dict extends DictResource {
|
||||
statistics: Statistics[],
|
||||
custom: boolean,//是否是自定义词典
|
||||
complete: boolean,//是否学习完成,学完了设为true,然后lastLearnIndex重置
|
||||
//后端字段
|
||||
en_name?: string
|
||||
createdBy?: string
|
||||
category_id?: number
|
||||
is_default?: boolean
|
||||
}
|
||||
|
||||
export interface ArticleItem {
|
||||
|
||||
Reference in New Issue
Block a user