浏览代码

add workflow

tycoding 1 年之前
父节点
当前提交
258fa21f01
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      langchat-ui/src/views/flow/index.vue

+ 4 - 1
langchat-ui/src/views/flow/index.vue

@@ -1,5 +1,5 @@
 <script lang="ts" setup>
-  import { h, onMounted, reactive, ref } from 'vue';
+  import { h, onMounted, onUnmounted, reactive, ref } from 'vue';
   import { BasicTable, TableAction } from '@/components/Table';
   import { BasicForm, useForm } from '@/components/Form/index';
   import { add, del, page as getPage } from '@/api/aigc/flow';
@@ -31,6 +31,9 @@
       `,
     });
   });
+  onUnmounted(() => {
+    notification.destroyAll();
+  });
 
   const actionColumn = reactive({
     width: 170,