Merge pull request #1633 from domingospanta/bugfix/1451_blank_page_on_unkown_resource

Bugfix/1451 blank page on unkown resource
This commit is contained in:
Louis Lam
2022-06-06 21:54:49 +08:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -551,6 +551,11 @@ export default {
this.incident = res.data.incident;
this.$root.publicGroupList = res.data.publicGroupList;
}).catch( function (error) {
if (error.response.status === 404) {
location.href = "/page-not-found";
}
console.log(error);
});
// 5mins a loop