Ver código fonte

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

lex-wxl 2 anos atrás
pai
commit
a19eba6720
1 arquivos alterados com 3 adições e 1 exclusões
  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