提交 9f378769 作者: 毛细亚

msg=error

上级 b44f8b74
...@@ -137,6 +137,10 @@ export default { ...@@ -137,6 +137,10 @@ export default {
async startWeComSilentAuth() { async startWeComSilentAuth() {
this.urlParams = getParams(); this.urlParams = getParams();
const corp_id = Cookies.get('corp_id') const corp_id = Cookies.get('corp_id')
if(!corp_id){
this.$message.error('当前客服号信息异常,请切换会话后重试')
return
}
// 确定是第一次进入页面 没有 code 和 state // 确定是第一次进入页面 没有 code 和 state
if (!this.urlParams.code && !this.urlParams.state) { if (!this.urlParams.code && !this.urlParams.state) {
// 跳转企微静默授权 // 跳转企微静默授权
...@@ -302,7 +306,9 @@ export default { ...@@ -302,7 +306,9 @@ export default {
const corp_id = Cookies.get('corp_id') const corp_id = Cookies.get('corp_id')
if(ddParams.code=='error' && ddParams.msg){ if(ddParams.code=='error' && ddParams.msg){
this.$message.error(ddParams.msg) this.$message.error(ddParams.msg)
window.location.href = window.location.origin +'/company_app/index.html?corp_id='+corp_id+'&msg=error' setTimeout(() => {
window.location.href = window.location.origin +'/company_app/index.html?corp_id='+corp_id+'&msg=error'
}, 5000)
return return
} }
if(ddParams.token && ddParams.token!='undefined'){ if(ddParams.token && ddParams.token!='undefined'){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论