mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
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:
commit
6ee7b3696a
2 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue