Эх сурвалжийг харах

:bug: 修复流程图缓存问题

smallchill 5 жил өмнө
parent
commit
97ef3f0aca

+ 1 - 1
src/views/work/process/leave/detail.vue

@@ -85,7 +85,7 @@
       init() {
         this.processInstanceId = this.$route.params.processInstanceId;
         this.businessId = this.$route.params.businessId;
-        this.src = `/api/blade-flow/process/diagram-view?processInstanceId=${this.$route.params.processInstanceId}`;
+        this.src = `/api/blade-flow/process/diagram-view?processInstanceId=${this.$route.params.processInstanceId}&t=${new Date().getTime()}`;
         historyFlowList(this.processInstanceId).then(res => {
           const data = res.data;
           if (data.success) {

+ 1 - 1
src/views/work/process/leave/handle.vue

@@ -104,7 +104,7 @@
         this.taskId = this.$route.params.taskId;
         this.processInstanceId = this.$route.params.processInstanceId;
         this.businessId = this.$route.params.businessId;
-        this.src = `/api/blade-flow/process/diagram-view?processInstanceId=${this.$route.params.processInstanceId}`;
+        this.src = `/api/blade-flow/process/diagram-view?processInstanceId=${this.$route.params.processInstanceId}&t=${new Date().getTime()}`;
         historyFlowList(this.processInstanceId).then(res => {
           const data = res.data;
           if (data.success) {