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.
25 lines
432 B
Vue
25 lines
432 B
Vue
<template>
|
|
<el-card>
|
|
<img src="./img/1.png" />
|
|
<div
|
|
class="md-main"
|
|
v-html="htmlStr"
|
|
></div>
|
|
</el-card>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref } from 'vue';
|
|
import { marked } from 'marked';
|
|
|
|
const htmlStr = ref('');
|
|
|
|
fetch('./summer.md', {
|
|
method: 'GET',
|
|
}).then((result) => {
|
|
result.text().then((res) => {
|
|
htmlStr.value = marked(res);
|
|
});
|
|
});
|
|
</script>
|