Commit 403968de by liwk

commit

1 parent 8df91f24
......@@ -111,12 +111,17 @@ const actions = {
util.showLoading()
let appid = getParams('corpId') //从链接获取
let dj_scrm = util.getLocalStorage('dj_scrm_corpId')
// if (!appid) appid = dj_scrm ? dj_scrm.corpId : 'ww7ee69c648ae1b7e6'
//
// util.setLocalStorage('dj_scrm_corpId', { corpId: appid })
// 'ww657a2d4ae89a4424'
// const wxUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize'
// window.location.href = `${wxUrl}?appid=${appid}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
if (!appid) {
if (dj_scrm) {
appid = dj_scrm.corpId
} else {
Notify('网络异常')
return
}
}
util.setLocalStorage('dj_scrm_corpId', { corpId: appid })
const wxUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize'
window.location.href = `${wxUrl}?appid=${appid}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`
}
},
navigation({ dispatch }, to) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!