更换编辑器

This commit is contained in:
2026-07-14 15:49:00 +08:00
parent 238f210d52
commit 4aa9204df7
26 changed files with 4341 additions and 2623 deletions
+3 -3
View File
@@ -14,12 +14,12 @@ import { createPinia } from 'pinia'
import { useAuthStore } from './stores/auth'
// import { initTheme } from './utils/theme'
// 导入全局组件
import WangEditor from '@/views/components/WangEditor.vue';
import TiptapEditor from '@/views/components/TiptapEditor.vue';
const app = createApp(App)
const pinia = createPinia()
// 全局注册 WangEditor 组件
app.component('WangEditor', WangEditor);
// 全局注册 TiptapEditor 组件
app.component('TiptapEditor', TiptapEditor);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
app.component(key, component)