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
commit 6ee7b3696a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@
<ul> <ul>
<li>{{ $t("Retype the address.") }}</li> <li>{{ $t("Retype the address.") }}</li>
<li><a href="#" class="go-back" @click="goBack()">{{ $t("Go back to the previous page.") }}</a></li> <li><a href="#" class="go-back" @click="goBack()">{{ $t("Go back to the previous page.") }}</a></li>
<li><a href="/" class="go-back">Go back to home page.</a></li>
</ul> </ul>
</div> </div>
</div> </div>

View file

@ -551,6 +551,11 @@ export default {
this.incident = res.data.incident; this.incident = res.data.incident;
this.$root.publicGroupList = res.data.publicGroupList; 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 // 5mins a loop