mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	fix: 修复控制台报错 Please use theme before using plugins
1.由 v-md-editor 使用方式不佳引起
This commit is contained in:
		| @@ -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); | ||||
| // 全局方法挂载 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user