From 422de0175ed3158433877902c7d4e37531aff3fa Mon Sep 17 00:00:00 2001 From: root Date: Thu, 28 Mar 2024 20:47:40 +0800 Subject: [PATCH] redirect to dashboard after login and fix some typo --- backend/routes/error/index.js | 2 +- client/src/views/out/login/Login.js | 2 +- doc/contribution.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/routes/error/index.js b/backend/routes/error/index.js index cc8a273e3..46eb44792 100644 --- a/backend/routes/error/index.js +++ b/backend/routes/error/index.js @@ -16,7 +16,7 @@ const handleError = (err, req, res, next) => { if (!description) { console.log('Error:', err) return res.status(404).json({ - description: 'unknow error', + description: 'unknown error', }) } console.log('Error:', description) diff --git a/client/src/views/out/login/Login.js b/client/src/views/out/login/Login.js index 8b44b911e..d39b8b451 100644 --- a/client/src/views/out/login/Login.js +++ b/client/src/views/out/login/Login.js @@ -28,7 +28,7 @@ const LoginFormTemplate = { const Login = () => { const { search } = useLocation() - const redirectURL = new URLSearchParams(search).get('pathFrom') || '/home' + const redirectURL = new URLSearchParams(search).get('pathFrom') || '/dashboard' const dispatch = useDispatch() const { isLogin } = useSelector(selectLogin) diff --git a/doc/contribution.md b/doc/contribution.md index f24d69828..7573b8d21 100644 --- a/doc/contribution.md +++ b/doc/contribution.md @@ -52,7 +52,7 @@ git commit -m {commit message} ## Step 6 Push -After you finished tour work, push this branch to origin. +After you finished your work, push this branch to origin. Please do not use git pull, since it may create redundant commits. ```