Ver Fonte

dev: mp-html跳转内部页面时自动加入/

Yahoo há 4 anos atrás
pai
commit
8078cf15b7
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      uni_modules/mp-html/components/mp-html/node/node.vue

+ 2 - 2
uni_modules/mp-html/components/mp-html/node/node.vue

@@ -306,10 +306,10 @@ export default {
         } else {
           // 跳转页面
           uni.navigateTo({
-            url: href,
+            url: '/' + href,
             fail () {
               uni.switchTab({
-                url: href,
+                url: '/' + href,
                 fail () { }
               })
             }