Browse Source

fix: 打开处理弹框前清空上一条流程实例,避免业务表单带着新 businessId 串 id 取数

lihaiting 3 days ago
parent
commit
7d02c5b079
3 changed files with 5 additions and 11 deletions
  1. 0 9
      .claude/settings.local.json
  2. 3 0
      src/views/bpm/handleTask/index.vue
  3. 2 2
      vue.config.js

+ 0 - 9
.claude/settings.local.json

@@ -1,9 +0,0 @@
-{
-  "permissions": {
-    "allow": [
-      "Bash(python *)",
-      "Bash(node *)",
-      "mcp__ide__getDiagnostics"
-    ]
-  }
-}

+ 3 - 0
src/views/bpm/handleTask/index.vue

@@ -579,6 +579,9 @@
         this.$refs.bziRef.save(data);
       },
       open(data) {
+        // 先清空上一条流程,让业务表单组件在新数据渲染前卸载,
+        // 避免旧流程的组件带着新流程的 businessId 重新取数(串 id 请求)
+        this.processInstance = {};
         this.listData = data;
         console.log('实例流程~~~~~~', data);
         this.dialogVisible = true;

+ 2 - 2
vue.config.js

@@ -38,7 +38,7 @@ module.exports = {
         // target: 'http://124.71.68.31:50001', // 测试环境
         // target: 'http://124.71.68.31:50001',
         // target: 'http://192.168.1.105:18086',
-        target: 'http://localhost:18090',
+        // target: 'http://localhost:18090',
         // target: 'http://192.168.1.116:18086',
         // target: 'http://192.168.1.3:18086',
         // target: 'http://192.168.1.251:18186',
@@ -46,7 +46,7 @@ module.exports = {
         // target: 'http://192.168.1.3:18086',
         // target: 'http://aiot.zoomwin.com.cn:51001/api',
         // target: 'http://192.168.1.3:18086',
-        // target: 'http://192.168.1.147:18086', // 陈兵
+        target: 'http://192.168.1.147:18086', // 陈兵
         // target: 'http://192.168.1.116:18086', // 赵沙金
         // target: 'http://192.168.1.113:18086', // 郭丹