فهرست منبع

修复辨识仪配置弹窗显示异常

cc12458 6 ماه پیش
والد
کامیت
743a332d67
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 0
      src/pages/aio/flow-config/index.vue
  2. 3 2
      src/pages/aio/flow-config/nodes/FlowNode.vue

+ 1 - 0
src/pages/aio/flow-config/index.vue

@@ -353,6 +353,7 @@ const validate = (tips = true) => {
 tryOnUnmounted(() => {
   // 新加的
   isUnmounted = true;
+  notification.destroy();
   try { scope.stop(); } catch {}
 });
 

+ 3 - 2
src/pages/aio/flow-config/nodes/FlowNode.vue

@@ -1,5 +1,5 @@
 <script setup lang="ts">
-import { tryOnMounted } from '@vueuse/core';
+import { tryOnMounted, tryOnUnmounted } from '@vueuse/core';
 import { GraphModel } from '@logicflow/core';
 import { VueNodeModel } from '@logicflow/vue-node-registry';
 
@@ -92,6 +92,7 @@ tryOnMounted(() => {
     (event) => event.data?.id === id.value
   );
 });
+tryOnUnmounted(() => { popover.value = false; });
 
 function updateProperties(props: FlowNodeProperties) {
   properties.value = Object.assign(properties.value, props);
@@ -158,7 +159,7 @@ function link(targetNodeId: string) {
 }
 
 .popover-content-wrapper {
-  min-width: 300px;
+  max-width: 300px;
   .title {
     margin-bottom: 8px;
     color: rgba(0, 0, 0, 0.88);