ソースを参照

盲票页面增加路由监听

Liugl 3 年 前
コミット
4f7ba38660
1 ファイル変更9 行追加0 行削除
  1. 9 0
      src/views/business/ticket/index.vue

+ 9 - 0
src/views/business/ticket/index.vue

@@ -272,6 +272,15 @@ export default {
       importShow: false,
     };
   },
+  watch: {
+    $route: {
+      handler: function(val, oldVal){
+        if(val.name == 'Ticket'){
+           this.getList();
+        }
+      }
+    }
+  },
   created() {
     this.getList();
   },