feat: vite proxy代理转发的一些技巧
parent
834cdfdf6e
commit
d145ddc07e
@ -0,0 +1,20 @@
|
|||||||
|
<template>
|
||||||
|
<el-card>
|
||||||
|
<div
|
||||||
|
class="md-main"
|
||||||
|
v-html="htmlStr"
|
||||||
|
></div>
|
||||||
|
</el-card>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref } from 'vue';
|
||||||
|
import { marked } from 'marked';
|
||||||
|
import { getMarkdownContent } from '@/utils/tools';
|
||||||
|
|
||||||
|
const htmlStr = ref('');
|
||||||
|
|
||||||
|
getMarkdownContent('./md/vite-proxy.md').then((res) => {
|
||||||
|
htmlStr.value = marked(res);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue