Improve docs

This commit is contained in:
syuilo
2021-08-05 16:04:31 +09:00
parent eac7f11aa7
commit 46f53868c5
3 changed files with 15 additions and 2 deletions

View File

@@ -64,6 +64,10 @@ export default defineComponent({
fetchDoc() {
fetch(`${url}/doc-assets/${lang}/${this.doc}.md`).then(res => res.text()).then(md => {
this.parse(md);
}).catch(() => {
fetch(`${url}/doc-assets/ja-JP/${this.doc}.md`).then(res => res.text()).then(md => {
this.parse(md);
});
});
},