Skip to content

Commit

Permalink
fix: 修复控制台报错 Please use theme before using plugins
Browse files Browse the repository at this point in the history
1.由 v-md-editor 使用方式不佳引起
  • Loading branch information
Charles7c committed Nov 5, 2023
1 parent b63d7d7 commit 47a8160
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions continew-admin-ui/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ import App from './App.vue';
import '@/assets/style/global.less';
import '@/utils/request';

VueMarkdownEditor.use(createEmojiPlugin());
VueMarkdownEditor.use(createCopyCodePlugin());
VueMarkdownEditor.use(createTodoListPlugin());
hljs.registerLanguage('json', json);
hljs.registerLanguage('java', java);
VueMarkdownEditor.use(githubTheme, {
Hljs: hljs,
});
VMdPreview.use(githubTheme, {
Hljs: hljs,
});
VueMarkdownEditor.use(createEmojiPlugin());
VueMarkdownEditor.use(createCopyCodePlugin());
VueMarkdownEditor.use(createTodoListPlugin());
hljs.registerLanguage('json', json);
hljs.registerLanguage('java', java);

const app = createApp(App);
// 全局方法挂载
Expand Down

0 comments on commit 47a8160

Please sign in to comment.