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