Commit 6043f20a by 李伟康

修复BUG

1 parent dd326a69
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
}, },
/**更新新增 */ /**更新新增 */
async updateChatGroup () { async updateChatGroup () {
const { editGroupText, addState, $message } = this const { editGroupText, addState, $message, chatForm } = this
try { try {
if (!editGroupText.newGroup) throw '请输入话术组!' if (!editGroupText.newGroup) throw '请输入话术组!'
if (addState) { if (addState) {
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
this.chatGroup.find(e => { this.chatGroup.find(e => {
if (e.value == editGroupText.oldGroup) { if (e.value == editGroupText.oldGroup) {
e.value = editGroupText.newGroup e.value = editGroupText.newGroup
this.chatForm.scriptGroup = editGroupText.newGroup if(chatForm.scriptGroup == editGroupText.oldGroup) this.chatForm.scriptGroup = editGroupText.newGroup
} }
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!