md功能实现

This commit is contained in:
simple321vip
2022-04-12 00:12:35 +08:00
parent fc2aa9d22b
commit 1c8c8264c2
6 changed files with 103 additions and 15 deletions
+2 -1
View File
@@ -4,13 +4,14 @@
<script setup lang="ts">
import MdEditor from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import { ref } from 'vue';
import { useRoute } from 'vue-router'
import { get_blog } from '../../api/blog'
let text = ref<string>('')
const route = useRoute()
get_blog(route.query).then(response => {
console.log(response.data)
text.value = response.data.blog_text
})
</script>