diff --git a/src/components/Canvas/FlowCanvas/index.vue b/src/components/Canvas/FlowCanvas/index.vue index 67d9108..fd5c39c 100644 --- a/src/components/Canvas/FlowCanvas/index.vue +++ b/src/components/Canvas/FlowCanvas/index.vue @@ -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