Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
未登录直接跳转至登录页面
Browse files Browse the repository at this point in the history
  • Loading branch information
dushixiang committed Nov 28, 2022
1 parent 7e2e410 commit 341a2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/Redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Redirect = () => {
setCurrentUser(data);
if (data.type === 'user') {
navigate('/my-asset');
} else {
} else if (data.type === 'admin'){
navigate('/dashboard');
}
}
Expand Down

0 comments on commit 341a2c7

Please sign in to comment.