guhongwei 4 年之前
父節點
當前提交
5048f6eec3
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/task/index.vue

+ 3 - 1
src/views/task/index.vue

@@ -33,7 +33,9 @@ export default {
     total: 0,
     total: 0,
   }),
   }),
   created() {
   created() {
-    this.search();
+    if (this.id) {
+      this.search();
+    }
   },
   },
   computed: {
   computed: {
     ...mapState(['user', 'defaultOption']),
     ...mapState(['user', 'defaultOption']),