Commit fdecc868 by 李伟康

增加wxconfig错误提醒

1 parent 45cd5caf
...@@ -51,7 +51,10 @@ const WxConfig = { ...@@ -51,7 +51,10 @@ const WxConfig = {
}) })
} else { } else {
if (wwRequestCount < 3) this.getWWConfig(jsApiList) if (wwRequestCount < 3) this.getWWConfig(jsApiList)
else Notify(message) else {
Notify('获取jsconfig失败')
throw new Error('获取jsconfig失败')
}
// util.refreshPage('获取WWCONFIG失败').then(() => { // util.refreshPage('获取WWCONFIG失败').then(() => {
// window.location.reload() // window.location.reload()
// }) // })
...@@ -97,7 +100,10 @@ const WxConfig = { ...@@ -97,7 +100,10 @@ const WxConfig = {
resolve() resolve()
} else { } else {
if (requestCount < 3) this.getWxConfig(jsApiList) if (requestCount < 3) this.getWxConfig(jsApiList)
else Notify(message) else {
Notify('获取jsconfig失败')
throw new Error('获取jsconfig失败')
}
// util.refreshPage('获取WXCONFIG失败').then(() => { // util.refreshPage('获取WXCONFIG失败').then(() => {
// window.location.reload() // window.location.reload()
// }) // })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!