Commit 324999fb authored by 崔佳豪's avatar 崔佳豪

fix: loginMode 添加至cookie

parent 1fc4aa00
Pipeline #48406 passed with stages
in 2 minutes 9 seconds
...@@ -151,6 +151,10 @@ const Login = forwardRef((props, _ref) => { ...@@ -151,6 +151,10 @@ const Login = forwardRef((props, _ref) => {
e && e.stopPropagation && e.stopPropagation(); e && e.stopPropagation && e.stopPropagation();
setType(isRQcodeFunc(type) ? LOGIN_DISPLAY.Account : LOGIN_DISPLAY.WeCom); setType(isRQcodeFunc(type) ? LOGIN_DISPLAY.Account : LOGIN_DISPLAY.WeCom);
props.updateLoginMode(isRQcodeFunc(type) ? LOGIN_WAY[LOGIN_DISPLAY.Account] : LOGIN_WAY[LOGIN_DISPLAY.WeCom]) props.updateLoginMode(isRQcodeFunc(type) ? LOGIN_WAY[LOGIN_DISPLAY.Account] : LOGIN_WAY[LOGIN_DISPLAY.WeCom])
Cookies.set('loginMode', isRQcodeFunc(type) ? LOGIN_WAY[LOGIN_DISPLAY.Account] : LOGIN_WAY[LOGIN_DISPLAY.WeCom], {
expires: 5 * 60 * 1000,
path: '/',
});
}; };
return ( return (
......
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