更新画布菜单交互逻辑,画布生成或画布编辑图片更新外面版本图片

This commit is contained in:
X1627315083@163.com
2026-04-17 15:46:28 +08:00
parent b4fc3addb8
commit 6517560bd8
8 changed files with 100 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
import { getTaskidResult } from '@/api/flow-canvas'
import { ElMessage } from 'element-plus'
import { updateVersionSketchUrlApi } from '@/api/flow-canvas'
// interface NodeOptions {
// }
@@ -54,6 +55,12 @@ export class GenerateManager {
nodeDataItem.url = item.url
nodeDataItem.createTime = item.createTime
nodeDataItem.status = item.status
//更新VersionNode的sketchIDAndUrl中指定key的URL值
updateVersionSketchUrlApi({
sketchId: this.stateManager.sketchId.value,
newUrl: item.url,
})
if(item.glbPath){
nodeDataItem.glbPath = item.glbPath
nodeDataItem.glbInfoObj = item.glbInfoObj