mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-20 13:14:45 -05: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
@ -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 New Issue
Block a user