tangjunhao 2 miesięcy temu
rodzic
commit
c8e2770603

+ 4 - 0
src/views/model/dialog/RunDialog.vue

@@ -35,6 +35,7 @@
 <script setup>
 import { request, getImage } from "@/utils/request"
 import { ElMessage } from "element-plus"
+import { useProjectStore } from "@/store/project"
 import run from "@/assets/img/run.png"
 import stop from "@/assets/img/stop.png"
 
@@ -43,6 +44,9 @@ import EchartLine from "../echarts/EchartLine.vue"
 const visible = ref(false)
 let spacesize = ref(10)
 
+const projectStore = useProjectStore()
+let pid = computed(() => projectStore.pid || "")
+
 function openDialog() {
   visible.value = true
 }

+ 8 - 0
src/views/model/index.vue

@@ -592,6 +592,14 @@ onMounted(() => {
     getlogs();
   }, 1500);
 })
+
+onBeforeUnmount(() => {
+  websock?.close()
+  clearTimeout(times.value.timeoutObj)
+  clearTimeout(times.value.serverTimeoutObj)
+})
+
+
 </script>
 
 <style scoped>

+ 7 - 0
src/views/model/vueflow/pointonlynode.vue

@@ -39,6 +39,13 @@ const props = defineProps({
   position: relative;
 }
 
+.vue-flow__handle {
+  width: 6px;
+  height: 6px;
+  min-width: 0 !important;
+  min-height: 0 !important;
+}
+
 </style>
 
 <style>