feat(qianduan): 重构前端结构并添加新功能
- 新增分类创建功能 - 新增笔记创建功能 - 优化笔记列表展示 - 改进笔记预览界面 - 添加删除笔记功能 - 重构菜单选择逻辑 - 优化文件上传处理 - 更新Markdown编辑器配置
This commit is contained in:
@@ -1,18 +1,33 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import router from './router/'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
|
||||
import VMdEditor from '@kangc/v-md-editor';
|
||||
import '@kangc/v-md-editor/lib/style/base-editor.css';
|
||||
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
|
||||
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
|
||||
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js';
|
||||
import '@kangc/v-md-editor/lib/theme/style/github.css';
|
||||
|
||||
import VMdPreview from '@kangc/v-md-editor/lib/preview';
|
||||
import '@kangc/v-md-editor/lib/style/preview.css';
|
||||
import '@kangc/v-md-editor/lib/theme/style/github.css';
|
||||
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
// 配置Markdown编辑器
|
||||
VMdEditor.use(vuepressTheme);
|
||||
// highlightjs
|
||||
import hljs from 'highlight.js';
|
||||
VMdEditor.use(githubTheme, {
|
||||
Hljs: hljs,
|
||||
});
|
||||
VMdPreview.use(githubTheme, {
|
||||
Hljs: hljs,
|
||||
});
|
||||
|
||||
// // 配置Markdown编辑器
|
||||
app.use(VMdEditor);
|
||||
app.use(VMdPreview);
|
||||
|
||||
// 使用Element Plus和路由
|
||||
app.use(ElementPlus)
|
||||
|
||||
Reference in New Issue
Block a user