Skip to content

Commit

Permalink
Merge pull request #16 from TuringCup/feature_backend
Browse files Browse the repository at this point in the history
update login redirection
  • Loading branch information
deltaLRD authored Oct 13, 2023
2 parents aa04f11 + 30c65e9 commit 22d2d0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/user/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Page() {
if (!error && data) {
if(data.token){
document.cookie = "token=" + data.token + ";path=/";
redirect("/")
redirect("/user/upload")
}else{
error = "没得到Token,请联系开发者";
}
Expand Down

0 comments on commit 22d2d0b

Please sign in to comment.