|
@@ -215,7 +215,9 @@ function WxJsSdkSignature(param) {
|
|
|
export async function initWxJsSdkConfig(jsApiList = [], openTagList = []) {
|
|
|
let url = location.href;
|
|
|
// https://developers.weixin.qq.com/community/develop/doc/000ae2cb950808f90d8bc415551800
|
|
|
- if (getMobileOperatingSystem() === 'iOS' && window.H5_LAUNCH_URL) {
|
|
|
+ //2. 判断是否为ios 如果为ios且有缓存url 则不做处理
|
|
|
+ const isIOS = /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent);
|
|
|
+ if (isIOS && window.H5_LAUNCH_URL) {
|
|
|
url = window.H5_LAUNCH_URL;
|
|
|
}
|
|
|
// url = url.replace(/http(s)?:\/\//g, '');
|