fix: 修复重定向逻辑,确保在登录成功后正确打开链接
This commit is contained in:
@@ -17,7 +17,7 @@ export const redirectHome = () => {
|
||||
if (redirect) {
|
||||
setTimeout(() => {
|
||||
const href = decodeURIComponent(redirect);
|
||||
// window.open(href, '_self');
|
||||
window.open(href, '_self');
|
||||
console.log('重定向到:', href);
|
||||
}, 2000);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user