huangb vor 7 Jahren
Ursprung
Commit
6242831e8c
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      pages/mobile/center/user/collect/component/_key.vue

+ 3 - 1
pages/mobile/center/user/collect/component/_key.vue

@@ -92,7 +92,9 @@
     },
     created () {
       this.compList = []
-      this.keyword = this.$route.params.key
+      if (this.$route.params) {
+        this.keyword = this.$route.params.key
+      }
       this.$store.dispatch('searchData/searchForListInMobile', { page: 1, count: 10, w: this.$route.params.key })
     },
     computed: {