This commit is contained in:
X1627315083@163.com
2026-03-13 11:24:29 +08:00
parent 0a472bb590
commit d52d897de5
4 changed files with 5 additions and 2 deletions

View File

@@ -122,7 +122,7 @@
const onGenerateClick = async () => {
const data = componentRef.value?.getApiData?.() || {}
const subordNode = stateManager.getSubordNodeByID(attrs.node.id)
const subordNode = stateManager.getSubordNodeById(attrs.node.id)
emit('update-data', componentRef.value?.data)
if(!attrs.node?.data?.originalImage)console.log('originalImage 找不到原始图片')

View File

@@ -271,6 +271,8 @@
> .image {
width: 100%;
height: auto;
max-height: 200px;
object-fit: contain;
}
> .status{
width: 100%;

View File

@@ -1,5 +1,6 @@
import { getTaskidResult } from '@/api/flow-canvas'
import { ElMessage } from 'element-plus'
// interface NodeOptions {
// }
export class GenerateManager {

View File

@@ -135,7 +135,7 @@ export class StateManager {
/** 获取节点 */
getNodeById(id: string) { return this.nodes.value.find((node: NodesItem) => node.id === id) }
/** 获取下级节点 */
getSubordNodeByID(id: string) { return this.nodes.value.find((node: NodesItem) => node.data.superiorID === id) }
getSubordNodeById(id: string) { return this.nodes.value.find((node: NodesItem) => node.data.superiorID === id) }
getLastNode() { console.log(this.nodes.value); return this.nodes.value[this.nodes.value.length - 1] }
/** 设置工具 */
setTool(tool: string) { this.tool.value = tool }