在vue-element-admin模板中去掉tui-editor
作者:互联网
先删除package.json的"tui-editor": "1.3.3",再安装依赖,不然会报错
1、修改package.json
删除包括tui-editor的1行
2、删除tui-editor相关文件
rm src/components/MarkdownEditor/index.vue
rm src/views/components-demo/markdown.vue
vi src/router/modules/components.js 删除@/views/components-demo/markdown相关内容,如下所示:
{
path: 'markdown',
component: () => import('@/views/components-demo/markdown'),
name: 'MarkdownDemo',
meta: { title: 'Markdown' }
}
npm run dev 可以运行
标签:vue,views,admin,demo,element,tui,markdown,editor,components 来源: https://www.cnblogs.com/bisiyuan/p/16242208.html