소스 검색

Merge branch 'master' of http://git.dayaedu.com/lex/h5-colexiu

lex-wxl 2 년 전
부모
커밋
a19eba6720
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/views/shop-mall/index.tsx

+ 3 - 1
src/views/shop-mall/index.tsx

@@ -57,7 +57,9 @@ export default defineComponent({
       let dev = false
       let origin = location.origin + location.pathname + '#'
       if (!url) return
-      url = origin + url
+      if (url.indexOf('http') < 0) {
+        url = origin + url
+      }
       console.log('跳转url:', url)
       if (dev) {
         location.href = url