feat:更新知识库对话框
This commit is contained in:
@@ -59,13 +59,11 @@ export const useLibraryStore = defineStore('library', {
|
||||
subject: '中医学',
|
||||
module: '中医基础理疗',
|
||||
name: '向量代数.pdf',
|
||||
size: '2.4 MB',
|
||||
time: '2分钟前',
|
||||
size: 2.4,
|
||||
uploadTime: '2分钟前',
|
||||
type: 'pdf',
|
||||
iconClass: 'icon-pdf',
|
||||
questions: [
|
||||
{ type: '选择题', stem: '设 a=(1,2,3), b=(2,-1,1),求 a·b = ?', options: ['A. 3', 'B. 5', 'C. 7', 'D. 9'], answer: 'A' },
|
||||
{ type: '计算题', stem: '求过点 P(1,0,2) 且法向量为 n=(2,1,-1) 的平面方程', answer: '2x + y - z = 0' }
|
||||
{ id: 1, type: 'single', question: '设 a=(1,2,3), b=(2,-1,1),求 a·b = ?', options: ['A. 3', 'B. 5', 'C. 7', 'D. 9'], answer: ['A'] }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -73,23 +71,23 @@ export const useLibraryStore = defineStore('library', {
|
||||
subject: '中医学',
|
||||
module: '中医基础理疗',
|
||||
name: '向量代数精讲.png',
|
||||
size: '156 MB',
|
||||
time: '3小时前',
|
||||
size: 156,
|
||||
uploadTime: '3小时前',
|
||||
type: 'image',
|
||||
iconClass: 'icon-image'
|
||||
questions: []
|
||||
}
|
||||
]
|
||||
},
|
||||
getEmptyFile(): ILibraryFile {
|
||||
return {
|
||||
iconClass: '',
|
||||
id: 0,
|
||||
module: '',
|
||||
name: '',
|
||||
size: '',
|
||||
size: 0,
|
||||
subject: '',
|
||||
time: '',
|
||||
type: ''
|
||||
uploadTime: '',
|
||||
type: '',
|
||||
questions: []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user