diff --git a/resources/assets/js/pages/manage/components/DialogWrapper.vue b/resources/assets/js/pages/manage/components/DialogWrapper.vue index 4aabf4995..d174ef501 100644 --- a/resources/assets/js/pages/manage/components/DialogWrapper.vue +++ b/resources/assets/js/pages/manage/components/DialogWrapper.vue @@ -653,7 +653,7 @@ export default { }, mounted() { - this.msgSubscribe = Store.subscribe('dialogMsgUpdate', this.updateMsg); + this.msgSubscribe = Store.subscribe('dialogMsgChange', this.onMsgChange); }, beforeDestroy() { @@ -1343,11 +1343,15 @@ export default { this.sendMsg(`
${item.label}
`) }, - updateMsg(data) { + onMsgChange(data) { const item = this.allMsgs.find(({type, id}) => type == "text" && id == data.id) if (item) { const {tail} = this.scrollInfo() - item.msg.text = data.text + if (data.type === 'append') { + item.msg.text += data.text + } else if (data.type === 'replace') { + item.msg.text = data.text + } if (tail <= 45) { this.onToBottom() } diff --git a/resources/assets/js/pages/manage/setting/components/SystemAibot.vue b/resources/assets/js/pages/manage/setting/components/SystemAibot.vue index 1b19ac7a9..0cf75fd11 100644 --- a/resources/assets/js/pages/manage/setting/components/SystemAibot.vue +++ b/resources/assets/js/pages/manage/setting/components/SystemAibot.vue @@ -2,24 +2,28 @@