695593266@qq.com il y a 2 mois
Parent
commit
bd2be076d9
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      src/views/taskList/index.vue

+ 12 - 0
src/views/taskList/index.vue

@@ -728,6 +728,10 @@
     created() {},
     mounted() {
       // this.getInspections();
+      this.refreshTableOnEnter();
+    },
+    activated() {
+      this.refreshTableOnEnter();
     },
     methods: {
       handleTabClick(e) {
@@ -917,6 +921,14 @@
         this.reload();
       },
 
+      refreshTableOnEnter() {
+        this.$nextTick(() => {
+          if (this.$refs.table) {
+            this.$refs.table.reload({ page: 1 });
+          }
+        });
+      },
+
       reload(where) {
         this.$refs.table.reload({ page: 1, where });
       },