Skip to content
This repository was archived by the owner on Aug 31, 2022. It is now read-only.

Commit 379b05e

Browse files
gurbirkalsiportante
authored andcommitted
Redirect user to 404 page when 404 error code received from request
handler
1 parent f7dcd15 commit 379b05e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const errorHandler = error => {
3535
return;
3636
}
3737
if (status === 404) {
38-
router.goBack();
38+
router.push('/exception/404');
3939
return;
4040
}
4141
if (status <= 504 && status >= 500) {

0 commit comments

Comments
 (0)