Skip to content
Snippets Groups Projects
Commit 0e7778be authored by syuilo's avatar syuilo
Browse files

refactor

parent 698fbdf8
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ export default defineComponent({
methods: {
fetchDoc() {
fetch(`${url}/assets/docs/${this.doc}.${lang}.md`).then(res => res.text()).then(md => {
fetch(`${url}/assets/docs/${lang}/${this.doc}.md`).then(res => res.text()).then(md => {
this.parse(md);
});
},
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -110,7 +110,7 @@ router.get('/docs.json', async ctx => {
ctx.body = [];
return;
}
const paths = glob.sync(__dirname + `/../../../src/docs/*.${lang}.md`);
const paths = glob.sync(__dirname + `/../../../src/docs/${lang}/*.md`);
const docs: { path: string; title: string; }[] = [];
for (const path of paths) {
const md = fs.readFileSync(path, { encoding: 'utf8' });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment