feat: 增加快捷键以及说明文档
This commit is contained in:
28
src/views/Config/Readme/index.vue
Normal file
28
src/views/Config/Readme/index.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<script setup lang='ts'>
|
||||
import {ref,onMounted} from 'vue'
|
||||
import markdownit from 'markdown-it'
|
||||
|
||||
const md = markdownit()
|
||||
const readmeHtml=ref('')
|
||||
const readMd=()=>{
|
||||
fetch('/src/views/Config/Readme/readme.md')
|
||||
.then(res=>res.text())
|
||||
.then(res=>{
|
||||
readmeHtml.value = md.render(res)
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
readMd()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="mb-10 ml-3">
|
||||
<div class="markdown-body" v-dompurify-html="readmeHtml"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user