diff --git a/pages/mine/details2.vue b/pages/mine/details2.vue index 274ea1c..d359dd1 100644 --- a/pages/mine/details2.vue +++ b/pages/mine/details2.vue @@ -1105,6 +1105,13 @@ // 修改角色 roletab() { + // + this.dialogList.forEach(item => { + if (item.checked) { + item.speaker = this.roleindexrow + 1 + } + }) + this.$u.post("/corpus/batchUpdateRole", { corpusId: this.luyinList.id, transferContent: JSON.stringify(this.dialogList), @@ -1118,12 +1125,6 @@ this.roleisshaw = false; this.cancelBeast() this.cancelAllAdd() - // - this.dialogList.forEach(item => { - if (item.checked) { - item.speaker = this.roleindexrow + 1 - } - }) }).catch(e => { uni.showToast({ title: '修改失败,请重试!',