初次init ueditor渲染没有任何问题,但是用浏览器返回上一个路由。在回到init ueditor的页面
富文本不见了。。。无法进行编辑

问题就是别人提的这个https://segmentfault.com/q/1010000011413233

解决办法就是在

mounted(){
    this.editor = UE.getEditor('editor',{ 
                BaseUrl: '', 
                UEDITOR_HOME_URL: 'static/utf8-jsp/', 
                // toolbars:[] 
                });
}
destroyed() {
  this.editor.destroy();
},

还不懂的可以留言我解答…希望帮到大家

Logo

前往低代码交流专区

更多推荐