소스 검색

路由跳转

lxf 1 주 전
부모
커밋
46e4f08159
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      public/index.html

+ 1 - 1
public/index.html

@@ -25,7 +25,7 @@
         }
         function getDeviceType() {
           if (!isMobileDevice() && !isTabletDevice()) {
-            window.location.href = targetProtocol + (window.location.host.replace('m', 'www')) + window.location.pathname + window.location.search
+            window.location.href = (targetProtocol + '//' + (window.location.host.replace('m', 'www')) + window.location.pathname + window.location.search)
           }
         }
         getDeviceType()