Commit 6b563324 authored by 杨思琦's avatar 杨思琦

fix: 企业微信跳转登录重定向修改

parent 0de1d3bc
Pipeline #63838 waiting for manual action with stages
...@@ -489,7 +489,7 @@ class Login { ...@@ -489,7 +489,7 @@ class Login {
id: 'wxlogin_container', id: 'wxlogin_container',
appid: 'wxec56ca668e7f9155', appid: 'wxec56ca668e7f9155',
agentid: '1000083', agentid: '1000083',
redirect_uri: encodeURIComponent(window.location.href.replace('#/', '')), redirect_uri: encodeURIComponent(window.location.href.replace('user/login', '')),
href: 'https://mis.panda-water.cn/web4/styles/wx.css', href: 'https://mis.panda-water.cn/web4/styles/wx.css',
}); });
} }
......
...@@ -10,7 +10,7 @@ const useWeCom = props => { ...@@ -10,7 +10,7 @@ const useWeCom = props => {
id: props.container || 'wxlogin_container', id: props.container || 'wxlogin_container',
appid: props.appid || WECOM_APPID, appid: props.appid || WECOM_APPID,
agentid: props.agentid || AGENTID_CLOUD, agentid: props.agentid || AGENTID_CLOUD,
redirect_uri: props.redirect_uri.replace('#/', '') || encodeURIComponent(window.location.href.replace('#/', '')), redirect_uri: props.redirect_uri || encodeURIComponent(window.location.href.replace('user/login', '')),
href: props.href || 'https://panda-water.cn/web4/styles/wx.css', href: props.href || 'https://panda-water.cn/web4/styles/wx.css',
self_redirect: false, self_redirect: false,
state: props.state || 'STATE', state: props.state || 'STATE',
...@@ -42,7 +42,7 @@ const useIOTQRCode = () => { ...@@ -42,7 +42,7 @@ const useIOTQRCode = () => {
container: 'wxlogin_container', container: 'wxlogin_container',
appid: WECOM_APPID, appid: WECOM_APPID,
agentid: AGENTID_CLOUD, agentid: AGENTID_CLOUD,
redirect_uri: encodeURIComponent(window.location.href.replace('#/', '')), // window.location.href redirect_uri: encodeURIComponent(window.location.href.replace('user/login', '')), // window.location.href
href: 'https://panda-water.cn/web4/styles/wecom.css', href: 'https://panda-water.cn/web4/styles/wecom.css',
state: rstate, state: rstate,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment