修复智能体编排页面浏览器控制台警告
This commit is contained in:
parent
72204bd8ce
commit
c0a3e3fca4
@ -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) => {
|
||||
|
||||
@ -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']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user