bruce 5 лет назад
Родитель
Сommit
295758e7ec
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      components/header.vue

+ 5 - 5
components/header.vue

@@ -379,11 +379,11 @@
         location.href = this.baseUrl + url;
       },
       clickInputEnter() {
-        // console.log("location ==", this.$route.path + "/?keyword=" + this.keywork);
-        // console.log("window.location ==", window.location.href);
-        // console.log("windown.location.hostname=", window.location.hostname);
-        // console.log("windown.location.pathname=", window.location.pathname);
-        let url = window.location.hostname + "/" + window.location.pathname + "/?keyword=" + this.keywork;
+        console.log("location ==", this.$route.path + "/?keyword=" + this.keywork);
+        console.log("window.location ==", window.location.href);
+        console.log("windown.location.hostname=", window.location.hostname);
+        console.log("windown.location.pathname=", window.location.pathname);
+        let url = "/?keyword=" + this.keywork;
         console.log(url);
         window.location.href = url;
       },