Browse Source

dev-修复:技术圈换搜索词后会还原成原搜索词的bug

bruce 5 years ago
parent
commit
25fbd1a600
1 changed files with 2 additions and 1 deletions
  1. 2 1
      components/header.vue

+ 2 - 1
components/header.vue

@@ -380,9 +380,10 @@ export default {
     },
     clickInputEnter() {
       let url = "";
+      console.log(this.$route)
       if (this.$route.name === "job") {
         url = "/?keyword=" + this.keywork;
-      } else if (this.$route.fullPath.indexOf("jishuin") > -1) {
+      } else if (this.$route.name==="user-searchTopic") {
         url = "/user/searchTopic?keyword=" + this.keywork;
       }
       console.log(url);