feat(admin): 新增题目类型、优化题目库管理并添加拼音助手
- 新增6种题目类型枚举:逆向接诗句、场景猜诗句、联想对对碰、字词飞花令、诗词常识、换字组成语 - 新增QuestionDrawer组件,支持富文本编辑和拼音转换功能 - 优化CategoryTree组件,增加分类选择本地存储和自动填充题目类型 - 更新question API接口,简化新增和更新题目库的参数传递 - 扩展QuestionRenderer组件,支持新增的题目类型渲染 - 添加多个题目库JSON文件,包含成语、诗词常识、字词飞花令等题目数据 - 调整环境配置,更新开发环境API地址
This commit is contained in:
@ -38,6 +38,9 @@ interface Question {
|
||||
Type: string
|
||||
IsGood: number
|
||||
ImageUrl: string
|
||||
IsDisabled: boolean
|
||||
KeyWord: string
|
||||
KeyWordsIndex: number
|
||||
}
|
||||
|
||||
async function importQuestions() {
|
||||
@ -88,6 +91,9 @@ async function importQuestions() {
|
||||
Type: question.Type,
|
||||
IsGood: question.IsGood,
|
||||
ImageUrl: question.ImageUrl || '',
|
||||
IsDisabled: question.IsDisabled || false,
|
||||
KeyWord: question.KeyWord || '',
|
||||
KeyWordsIndex: question.KeyWordsIndex || 0,
|
||||
}
|
||||
|
||||
// 发送请求
|
||||
|
||||
Reference in New Issue
Block a user