Ver código fonte

修复乐团搜索问题

wolyshaw 4 anos atrás
pai
commit
4ee016c830
1 arquivos alterados com 10 adições e 10 exclusões
  1. 10 10
      src/views/teamDetail/teamList.vue

+ 10 - 10
src/views/teamDetail/teamList.vue

@@ -337,7 +337,7 @@ export default {
     closeStudens
   },
   mounted () {
-    this.$set(this.topForm, 'teamName', this.$route.query.search)
+    // this.$set(this.topForm, 'teamName', this.$route.query.search)
     this.init();
   },
   activated () {
@@ -369,15 +369,15 @@ export default {
     reset () {
       this.rules.page = 1;
       this.$refs['topForm'].resetFields();
-      if (this.$route.query.search) {
-        this.$router.replace({
-          path: this.$route.path,
-          query: {
-            ...this.$route.query,
-            search: undefined
-          }
-        })
-      }
+      // if (this.$route.query.search) {
+      //   this.$router.replace({
+      //     path: this.$route.path,
+      //     query: {
+      //       ...this.$route.query,
+      //       search: undefined
+      //     }
+      //   })
+      // }
       this.getList()
     },
     search () {