修复智能体编排页面浏览器控制台警告

This commit is contained in:
jingrow 2025-09-10 14:31:38 +08:00
parent 72204bd8ce
commit c0a3e3fca4
2 changed files with 20 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<script setup>
import { ref, computed, onMounted, watch, nextTick, onUnmounted } from 'vue';
import { ref, computed, onMounted, watch, nextTick, onUnmounted, markRaw } from 'vue';
import { VueFlow, useVueFlow, Panel } from '@vue-flow/core';
import { Controls, ControlButton } from '@vue-flow/controls';
import { MiniMap } from '@vue-flow/minimap';
@ -107,8 +107,8 @@ const onPaneReady = () => {
}
};
//
const nodeTypes = getNodeComponents();
// 使markRaw
const nodeTypes = markRaw(getNodeComponents());
//
const getNodeColor = (nodeType) => {

View File

@ -11,7 +11,23 @@ const props = defineProps({
id: String,
data: Object,
selected: Boolean,
type: String
type: String,
// Vue Flow
events: Object,
resizing: Boolean,
dragging: Boolean,
connectable: Boolean,
position: Object,
dimensions: Object,
isValidTargetPos: Function,
isValidSourcePos: Function,
parent: String,
parentNodeId: String,
zIndex: Number,
targetPosition: String,
sourcePosition: String,
label: String,
dragHandle: String
});
const emit = defineEmits(['edit-node', 'updateNodeInternals']);