Commit b7272e1e authored by 周宏民's avatar 周宏民

fix: 测试还原

parent 9817e29d
Pipeline #89855 passed with stages
...@@ -41,12 +41,12 @@ const Login = forwardRef((props, _ref) => { ...@@ -41,12 +41,12 @@ const Login = forwardRef((props, _ref) => {
const history = useHistory(); const history = useHistory();
const [action, setAction] = useState(() => new LoginAction(Object.assign({}, props, { history }), setVisible, true)); const [action, setAction] = useState(() => new LoginAction(Object.assign({}, props, { history }), setVisible, true));
let { ddCode } = props.global; let { ddCode } = props.global;
// if (originType) { if (originType) {
// Cookies.set('loginMode', LOGIN_WAY[LOGIN_DISPLAY.WeCom], { Cookies.set('loginMode', LOGIN_WAY[LOGIN_DISPLAY.WeCom], {
// expires: 5 * 60 * 1000, expires: 5 * 60 * 1000,
// path: '/', path: '/',
// }); });
// } }
const loginMode = Cookies.get('loginMode') || null; const loginMode = Cookies.get('loginMode') || null;
if (loginMode && loginMode === 'iotWechat') ddCode = null; if (loginMode && loginMode === 'iotWechat') ddCode = null;
......
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