diff --git a/src/views/competitionManage/bankList/question-form.vue b/src/views/competitionManage/bankList/question-form.vue index 26ec51803..75c1d327d 100644 --- a/src/views/competitionManage/bankList/question-form.vue +++ b/src/views/competitionManage/bankList/question-form.vue @@ -146,6 +146,7 @@ export default { getLableList().then(res => { this.labelList = res.data || []; }).catch(err => { + console.log(err); }); }, methods: { diff --git a/src/views/competitionManage/bankList/question-update-page.vue b/src/views/competitionManage/bankList/question-update-page.vue index b8469a41c..ca5510a30 100644 --- a/src/views/competitionManage/bankList/question-update-page.vue +++ b/src/views/competitionManage/bankList/question-update-page.vue @@ -90,7 +90,10 @@ export default { this.doBack(); } else if (valid) { // this.formModel.companyId = parseInt(this.companyId); - this.formModel.tags = this.tagsArr.join(','); + this.formModel.tags = this.tagsArr; + if (Array.isArray(this.tagsArr)) { + this.formModel.tags = this.tagsArr.join(','); + } updateOption(this.formModel).then(resp => { this.doBack(); }).catch(error => {