Sfoglia il codice sorgente

bugfix: 切换pc端

任一存 2 anni fa
parent
commit
868dc7906d
3 ha cambiato i file con 5 aggiunte e 15 eliminazioni
  1. 2 1
      src/main.js
  2. 0 14
      src/pages/Home.vue
  3. 3 0
      src/views/gui/BigMap.vue

+ 2 - 1
src/main.js

@@ -11,7 +11,8 @@ import browser from '@/utils/browser'
 
 import "@/assets/style/my-reset.css"
 
-if (browser.mobile) {
+console.log('v0410.1517')
+if (!browser.mobile) {
   location.replace(process.env.VUE_APP_PC_URL)
 }
 

+ 0 - 14
src/pages/Home.vue

@@ -143,20 +143,6 @@ export default {
   mounted() {
   },
   created() {
-    // 移动端和pc端的切换
-    if (
-      window.navigator.userAgent.match(
-        /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
-      )
-    ) {
-      // 移动端
-      if (window.location.href.includes("web")) {
-        window.location.href = window.location.href.replace("web", "webM")
-        setTimeout(() => {
-          location.reload(true)
-        }, 1000)
-      }
-    }
   },
 
   methods: {

+ 3 - 0
src/views/gui/BigMap.vue

@@ -92,6 +92,9 @@ export default {
   methods: {
     onClickRegion(regionItem) {
       globalApi.reportRegionClick(regionItem.reportType)
+      // window.player.flyToPano({
+      //   pano: window.player.model.panos.index["ce13067e8cc247b983405502dc2577ae"],
+      // })
     }
   }
 }