shaogen1995 3 years ago
parent
commit
f553ea5bce
3 changed files with 6 additions and 5 deletions
  1. 2 2
      web/src/components/exhibition/index.vue
  2. 1 1
      web/src/pages/Home.vue
  3. 3 2
      web/src/views/gui/menu.vue

+ 2 - 2
web/src/components/exhibition/index.vue

@@ -58,8 +58,8 @@ export default {
     handleItem(val) {
       // 中文版
       if (this.Mylangue) {
-        window.location.href = window.location.origin + `#/?m=${val}`;
-      } else window.location.href = window.location.origin + `#/?m=${val}_1`;
+        window.location.href = window.location.origin +window.location.pathname+ `#/?m=${val}`;
+      } else window.location.href = window.location.origin +window.location.pathname+ `#/?m=${val}_1`;
       location.reload(true);
     },
   },

+ 1 - 1
web/src/pages/Home.vue

@@ -149,7 +149,7 @@ export default {
       window.evt.initEvent("loadfinish", false, false);
       window.addEventListener("loadfinish", () => {
         this.loading = false;
-        document.title = "大理洱海科普教育中心";
+        // document.title = "大理洱海科普教育中心";
         this.getHotSpotList();
         window.player.on("openTips", () => {
           this.$showTips();

+ 3 - 2
web/src/views/gui/menu.vue

@@ -381,8 +381,9 @@ export default {
     // 切换语言
     langueCut() {
       if (window.location.href.indexOf("_1") > -1) {
-        window.location.href = window.location.origin + window.location.hash.slice(0, -2);
-      } else window.location.href = window.location.origin + window.location.hash+'_1';
+        console.log();
+        window.location.href = window.location.origin +window.location.pathname+ window.location.hash.slice(0, -2);
+      } else window.location.href = window.location.origin +window.location.pathname+window.location.hash+'_1';
       location.reload(true);
     },
     // 封装点赞的接口