Jump to page 404 when resource is not found

This commit is contained in:
cuigh
2021-12-24 11:50:21 +08:00
parent b55b53aa4b
commit 308d3ddc05
5 changed files with 24 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ class Ajax {
case 403:
router.replace("/403");
return true
case 404:
router.replace("/404");
return true
case 500:
this.showError(error)
}