md功能实现
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user