bugfix - 试卷规则标签选项

This commit is contained in:
Yuan 2023-05-06 18:03:32 +08:00
parent b472601fbc
commit e3857a75d0

View File

@ -185,10 +185,9 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form.resetFields() this.$refs.form.resetFields()
if (detail) { if (detail) {
this.fillLabelsOption().then(() => {
this.isEditMode = true this.isEditMode = true
this.index = detail.index this.index = detail.index
console.log(detail) this.sceneInfo = detail.sceneInfo || []
this.form = { this.form = {
type: detail.type, type: detail.type,
subtype: detail.subtype, subtype: detail.subtype,
@ -197,8 +196,7 @@ export default {
id: detail.id || '', id: detail.id || '',
tags: detail.tags ? detail.tags[0] : '', tags: detail.tags ? detail.tags[0] : '',
} }
this.sceneInfo = detail.sceneInfo || [] this.fillLabelsOption().then(() => {
this.topicNum = detail.topicNum
this.getQuestionAmount() this.getQuestionAmount()
}) })
} else { } else {