|
@@ -55,7 +55,9 @@ const Login2p: React.FC = () => {
|
|
|
// wx.miniProgram.navigateBack()
|
|
|
}
|
|
|
} else if (login2p.isWechat && !wechatToken) {
|
|
|
- login2p.loginWechatLaunch(`${process.env.REACT_APP_URL}login2p/wechat?next=${next ? next : '/'}`)
|
|
|
+ login2p.loginWechatLaunch(
|
|
|
+ `${process.env.REACT_APP_URL}login2p/wechat?next=${next ? next : encodeURIComponent('/')}`
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
const handleLoginegByCode = (value: any) => {
|
|
@@ -151,7 +153,9 @@ const Login2p: React.FC = () => {
|
|
|
<Button
|
|
|
icon={<WechatOutlined style={{ color: '#60C84D' }} />}
|
|
|
onClick={() =>
|
|
|
- login2p.loginWechatLaunch(`${process.env.REACT_APP_URL}login2p/wechat?next=${next ? next : '/'}`)
|
|
|
+ login2p.loginWechatLaunch(
|
|
|
+ `${process.env.REACT_APP_URL}login2p/wechat?next=${next ? next : encodeURIComponent('/')}`
|
|
|
+ )
|
|
|
}
|
|
|
shape="circle"
|
|
|
size="large"
|