完成大作业部分及其打磨

This commit is contained in:
li-chx
2025-05-11 17:22:21 +08:00
parent 3ab2c26776
commit 0622b15509
23 changed files with 651 additions and 160 deletions
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { MdPreview } from 'md-editor-v3';
import 'md-editor-v3/lib/style.css';
import BackButton from '~/components/BackButton.vue';
const store = useArticleStore();
const content = store.currentArticle.content;
const title = store.currentArticle.title;
</script>
<template>
<div class="p-6">
<back-button class="ml-3" />
<div
class="m-2 bg-white rounded-xl p-6 border-gray-200 border-2 min-h-[300px] dark:bg-black dark:border-zinc-600"
>
<span class="text-4xl">{{ title }}</span>
<MdPreview
v-model="content"
:theme="useColorMode().preference"
class="mt-6"
></MdPreview>
</div>
</div>
</template>