This commit is contained in:
2025-12-04 17:50:00 +08:00
parent a51a366f00
commit d217c8cec1
12 changed files with 632 additions and 514 deletions

View File

@@ -19,7 +19,11 @@ export const redirectHome = () => {
const href = decodeURIComponent(redirect);
window.open(href, '_self');
}
// 从url上清除 code 参数, 清除 state 参数
emit({ type: 'login-success', data: {} });
setTimeout(() => {
clearCode();
}, 1500);
}
export const loginHandle = async (opts: LoginOpts) => {
const { loginMethod, data, el } = opts