fix: change readme path

This commit is contained in:
ex_zhangwenlei@exiot.cmcc
2024-01-20 00:09:04 +08:00
parent 4eaccfa54c
commit 5691dc8c9e
2 changed files with 1 additions and 2 deletions

View File

@@ -1,11 +1,10 @@
<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')
fetch('/readme.md')
.then(res=>res.text())
.then(res=>{
readmeHtml.value = md.render(res)