wujingjing
2024-09-10 68994735dddb8d2be65149aa605ec0ac12e8775a
src/views/project/yw/lowCode/sqlAmis/SqlAmis.vue
@@ -213,9 +213,10 @@
import { useCompRef } from '/@/utils/types';
import { convertListToTree } from '/@/utils/util';
import axios, { CancelTokenSource } from 'axios';
import * as supervisorGroupApi from '/@/api/supervisorAdmin/supervisorGroup';
import LeftTreeByMgr from '/@/components/tree/leftTreeByMgr.vue';
import AHMContainer from '/@/components/layout/AHMContainer.vue';
import LeftTreeByMgr from '/@/components/tree/leftTreeByMgr.vue';
import { useUpdateData } from '/@/hooks/useUpdateData';
//#region ====================== 左侧树数据,tree init ======================
@@ -493,7 +494,9 @@
   nextTick(() => {
      chatRef.value.clear();
      chatRef.value.autoSend(row.prompt);
      setTimeout(() => {
         chatRef.value.autoSend(row.prompt);
      }, 30);
   });
};
@@ -515,7 +518,9 @@
   },
});
const questionAi = async (text) => {
const questionAi = async (text, sourceObj: { source: CancelTokenSource }) => {
   const currentSource = axios.CancelToken.source();
   sourceObj.source = currentSource;
   const res = await checkSupervisorValidate(
      {
         id: chatTestMapRow.value.id,
@@ -523,6 +528,7 @@
      },
      {
         loading: false,
         cancelToken: currentSource.token,
      }
   );
   return res;