Ver Fonte

工作流及时更新数据

yuedefeng há 6 anos atrás
pai
commit
2d43a203c5

+ 9 - 1
src/dashoo.cn/frontend_web/src/components/workflow/wfhistory.vue

@@ -46,7 +46,7 @@
       },
       entryinfo: {}
     },
-    created() {
+    created () {
       this.getuserlist()
     },
     computed: {
@@ -54,6 +54,14 @@
         session: 'session'
       })
     },
+    watch: {
+      entryinfo: {
+        handler: function (newVal, oldVal) {
+          this.getuserlist()
+        },
+        deep: true
+      }
+    },
 
     data() {
       return {