!21 #Close fix 修复流程定义界面内查看流程图时因缓存问题而不更新数据、流程定义界面内的导入操作以及上传地址错误,并添加数据验证

* 修复流程定义界面内查看流程图时因缓存问题而不更新数据、流程定义界面内的导入操作以及上传地址错误,并添加数据验证
This commit is contained in:
Siri
2022-05-18 14:44:50 +00:00
committed by KonBAI
parent 4257e4460e
commit a49e1b0187
2 changed files with 54 additions and 25 deletions

View File

@@ -90,6 +90,20 @@ export default {
hoverTimer: null
}
},
watch: {
xml: {
handler(newXml) {
this.importXML(newXml);
},
immediate: true
},
finishedInfo: {
handler(newInfo) {
this.setProcessStatus(newInfo);
},
immediate: true
}
},
created() {
this.$nextTick(() => {
this.importXML(this.xml)
@@ -188,7 +202,6 @@ export default {
await this.bpmnViewer.importXML(xml);
this.addCustomDefs();
} catch (e) {
console.error(e);
this.clearViewer();
} finally {
this.isLoading = false;
@@ -237,21 +250,7 @@ export default {
},
destroyed() {
this.clearViewer();
},
// watch: {
// xml: {
// handler(newXml) {
// this.importXML(newXml);
// },
// immediate: true
// },
// finishedInfo: {
// handler(newInfo) {
// this.setProcessStatus(newInfo);
// },
// immediate: true
// }
// }
}
}
</script>