Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue 中使用时首次渲染时需要3秒左右才能显示 多页面使用时 有时会提示Uncaught (in promise) TypeError: Cannot convert undefined or null to object 错误渲染不出来 #189

Open
yinxuejing123 opened this issue May 15, 2024 · 0 comments

Comments

@yinxuejing123
Copy link

在Vue页面全局引入注册
<vue-ueditor-wrap v-model="editorContent" :config="editorConfig" :editor-id="editorId" ref="ueditorWrap" class="u-editor" @ready="handleEditorReady"> 封装的组件
editorConfig: {
// 访问 UEditor 静态资源的根路径,可参考 https://hc199421.gitee.io/vue-ueditor-wrap/#/faq
UEDITOR_HOME_URL: "./../../static/public/UEditor/",
// 服务端接口(这个地址是我为了方便各位体验文件上传功能搭建的临时接口,请勿在生产环境使用!!!)
serverUrl: "",
toolbars: [
[
'source',
'|',
'bold',
'italic',
'underline',
'strikethrough',
// 'blockquote',
'|',
'forecolor',
'backcolor',
'insertorderedlist',
'insertunorderedlist',
'|',
'removeformat',
'formatmatch',
'pasteplain',
'|',
// 'undo',
// 'redo',
// '|',
'simpleupload',
// 'insertimage',
],
],
}, 配置项
<editor :editor-disabled="disabled" @editor-return="editorReturn" :editor-id="editorId" :content="formData.content" :is-show-gallery="false" :gallery-type="2" :dataid="''" v-if="showEditor">
页面引入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant