fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user