更新画布菜单交互逻辑,画布生成或画布编辑图片更新外面版本图片
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user