feat: 增加快捷键以及说明文档

This commit is contained in:
ex_zhangwenlei@exiot.cmcc
2024-01-20 00:01:08 +08:00
parent c3ab47414e
commit ad2df0b8eb
8 changed files with 1368 additions and 11 deletions

View 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>