feat: 自定义实现二级目录排序
parent
9cd8800f90
commit
bd23e4f4d2
@ -0,0 +1,17 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
class="markdown-body"
|
||||||
|
v-html="htmlStr"
|
||||||
|
></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
import { marked } from 'marked';
|
||||||
|
import { getMarkdownContent } from '@/utils/tools';
|
||||||
|
|
||||||
|
const htmlStr = ref('');
|
||||||
|
getMarkdownContent('./md/python-init.md').then((res) => {
|
||||||
|
htmlStr.value = marked(res);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue