!21 #Close fix 修复流程定义界面内查看流程图时因缓存问题而不更新数据、流程定义界面内的导入操作以及上传地址错误,并添加数据验证
* 修复流程定义界面内查看流程图时因缓存问题而不更新数据、流程定义界面内的导入操作以及上传地址错误,并添加数据验证
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user