浏览代码

修改搜索跳转逻辑:更换技术圈跳转验证

bruce 5 年之前
父节点
当前提交
f92672ef2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/header.vue

+ 1 - 1
components/header.vue

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