Commit 403968de by liwk

commit

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