lushuncheng il y a 4 ans
Parent
commit
6730b95bbd
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      public/demo.html

+ 1 - 1
public/demo.html

@@ -68,7 +68,7 @@
         return null;
       }
       if (!ua) {
-        let url = "http://www.weibo.cn/demo.html"; // 要打开的 H5 页面的地址
+        let url = location.href; // 要打开的 H5 页面的地址
         let scheme = `sinaweibo://browser?url=` + encodeURIComponent(url);
         window.location.href = `https://m.weibo.cn/feature/openapp?scheme=` + encodeURIComponent(scheme);
       } else {