You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
353 B
Vue
19 lines
353 B
Vue
<template>
|
|
<div
|
|
class="markdown-body"
|
|
v-html="htmlStr"
|
|
/>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue';
|
|
import { marked } from 'marked';
|
|
import { getMarkdownContent } from '@/utils/tools';
|
|
|
|
const htmlStr = ref('');
|
|
|
|
getMarkdownContent('./md/backToHttp.md').then((res) => {
|
|
htmlStr.value = marked(res);
|
|
});
|
|
</script>
|