Quellcode durchsuchen

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

lex-wxl vor 2 Jahren
Ursprung
Commit
a19eba6720
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  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