This commit is contained in:
lzp
2026-03-20 14:35:46 +08:00
parent 5c67892ec3
commit 73845df594
3 changed files with 18 additions and 13 deletions

View File

@@ -48,13 +48,13 @@
id: config.value.canvasId || null
}
const sData = await saveDepthCanvas(data)
const canvasId = sData.id
// base64 转 file 上传转换为 url
const file = base64Tofile(options.url, 'canvas.png')
const formData = new FormData()
formData.append('file', file)
const url = await uploadImage(formData)
const url = await uploadImage(formData, true)
config.value.onWorkbench?.({ url, canvasId })
dialogVisible.value = false