Ver código fonte

取消执行

zhengnaiwen_citu 1 semana atrás
pai
commit
fb4ce9ab05
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/views/dataChart/dataChartEditChat.vue

+ 4 - 0
src/views/dataChart/dataChartEditChat.vue

@@ -373,6 +373,10 @@ export default {
       this.$emit('render', data)
     },
     update (data) {
+      if (this.abortController && this.disabled) {
+        this.abortController.abort('')
+        this.abortController = null
+      }
       this.items.splice(1, this.items.length - 1, ...data.messages.map(e => {
         if (e.role === 'user') {
           return {