vue-markdown-editor
vue-markdown-editor copied to clipboard
报错:The command name is already in use: tip
The command name is already in use: tip base-editor.js:3899
vue3 vite2
当组件使用v-if动态显示时出现
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 createLineNumbertPlugin from "@kangc/v-md-editor/lib/plugins/line-number/index";
import createCopyCodePlugin from "@kangc/v-md-editor/lib/plugins/copy-code/index";
import "@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css";
import Prism from "prismjs";
import "prismjs/components/prism-json";
VMdEditor.use(vuepressTheme, {
Prism,
});
VMdEditor.use(createLineNumbertPlugin());
VMdEditor.use(createCopyCodePlugin());
这个怎么解决呢?