故事详情排版修改

This commit is contained in:
jiangh277
2025-12-26 20:40:39 +08:00
parent 07e011febd
commit e4308aaeb5
4 changed files with 27 additions and 5 deletions

View File

@@ -121,7 +121,7 @@ const Login: React.FC = () => {
// await fetchUserInfo();
localStorage.setItem('timeline_user', JSON.stringify(response.data))
const urlParams = new URL(window.location.href).searchParams;
window.location.href = urlParams.get('redirect') || '/';
window.location.href = urlParams.get('redirect')?.split('?redirect=')[1] || '/';
return;
}
console.log(response.message);