This commit is contained in:
syuilo
2018-02-22 05:16:38 +09:00
parent 0df6f5a253
commit 7f7fdbd678
3 changed files with 65 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<h1>%i18n:common.tags.mk-error.title%</h1>
<p class="text">
{{ '%i18n:common.tags.mk-error.description%'.substr(0, '%i18n:common.tags.mk-error.description%'.indexOf('{')) }}
<a @click="location.reload()">{{ '%i18n:common.tags.mk-error.description%'.match(/\{(.+?)\}/)[1] }}</a>
<a @click="reload">{{ '%i18n:common.tags.mk-error.description%'.match(/\{(.+?)\}/)[1] }}</a>
{{ '%i18n:common.tags.mk-error.description%'.substr('%i18n:common.tags.mk-error.description%'.indexOf('}') + 1) }}
</p>
<button v-if="!troubleshooting" @click="troubleshooting = true">%i18n:common.tags.mk-error.troubleshoot%</button>
@ -29,6 +29,11 @@ export default Vue.extend({
mounted() {
document.title = 'Oops!';
document.documentElement.style.background = '#f8f8f8';
},
methods: {
reload() {
location.reload();
}
}
});
</script>