Commit cbc336f3 authored by 杨思琦's avatar 杨思琦

fix: 企业微信登录还原

No related merge requests found
Pipeline #63921 passed with stages
......@@ -489,7 +489,7 @@ class Login {
id: 'wxlogin_container',
appid: 'wxec56ca668e7f9155',
agentid: '1000083',
redirect_uri: encodeURIComponent(window.location.href.replace('user/login', '')),
redirect_uri: encodeURIComponent(window.location.href),
href: 'https://mis.panda-water.cn/web4/styles/wx.css',
});
}
......
......@@ -10,7 +10,7 @@ const useWeCom = props => {
id: props.container || 'wxlogin_container',
appid: props.appid || WECOM_APPID,
agentid: props.agentid || AGENTID_CLOUD,
redirect_uri: props.redirect_uri || encodeURIComponent(window.location.href.replace('user/login', '')),
redirect_uri: props.redirect_uri || encodeURIComponent(window.location.href),
href: props.href || 'https://panda-water.cn/web4/styles/wx.css',
self_redirect: false,
state: props.state || 'STATE',
......@@ -42,7 +42,7 @@ const useIOTQRCode = () => {
container: 'wxlogin_container',
appid: WECOM_APPID,
agentid: AGENTID_CLOUD,
redirect_uri: encodeURIComponent(window.location.href.replace('user/login', '')), // window.location.href
redirect_uri: encodeURIComponent(window.location.href), // window.location.href
href: 'https://panda-water.cn/web4/styles/wecom.css',
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