Commit d1ca1dc9 by 李伟康

wx is not defined增加刷新

1 parent fa1a7f59
......@@ -104,18 +104,10 @@ const WxConfig = {
resolve()
} else throw false
} catch (error) {
util.refreshPage('加载wxconfig失败','重试').then(() => {
util.refreshPage('加载wxconfig失败,请重试','重试').then(() => {
window.location.reload()
})
}
// window.WXJDK.onload = e => {
// wx.config({
// ...obj,
// jsApiList,
// openTagList: ['wx-open-launch-weapp']
// })
// resolve()
// }
} else {
if (requestCount < 3) this.getWxConfig(jsApiList)
else {
......
......@@ -68,7 +68,6 @@ let body = document.getElementsByTagName('head')[0],
ISWXWORK = false,
IsIOS = /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent),
ISMiniprogram = window.__wxjs_environment === 'miniprogram'
window.WXJDK = WXJDK
WXJDK.src = '//res.wx.qq.com/open/js/jweixin-1.6.0.js'
// WXJDK.src = `//res.wx.qq.com/open/js/jweixin-1.6.0.js?${Date.now()}`
if (Boolean(ua.match(/MicroMessenger/i)) && Boolean(ua.match(/wxwork/i))) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!