This commit is contained in:
X1627315083@163.com
2026-04-21 16:57:31 +08:00
parent a649f1fc63
commit 5e6d53bbe6

View File

@@ -18,16 +18,19 @@
const {t:$t} = useI18n()
const open = async (options) => {
let json = []
let isGetJson = false
await new Promise((resolve) => {
getSketchFlowCanvas({ id: options.imgId },true).then((res:any) => {
if (res) {
json = JSON.parse(res)
}
isGetJson = true
resolve(true)
}).catch(() => {
resolve(true)
resolve(false)
})
})
if(!isGetJson)return
config.value = options || {}
config.value.json = json
dialogVisible.value = true