Git Product home page Git Product logo

Comments (10)

haochuan9421 avatar haochuan9421 commented on July 4, 2024

我试了一下,keep-alive 并不会出现你说的渲染两个编辑器的问题,你参考一下这个 Demo
image

如果 Demo 和你的场景不一致的话, fork 一个这个 Demo,提供一个能复现问题的版本

from vue-ueditor-wrap.

penjay avatar penjay commented on July 4, 2024

好像又不是keep-alive的问题,但不知道是哪里的问题。
我有2个项目,其中一个A没有任何问题,单页应用(keep-alive)切换后都是正常的。
但是我提问的这个项目B,只要切换tab,就会一直渲染UE,console看到每次切换都会新增editor_xxxxx。

今天我复制了没有问题的那个A,把views全删了,把B的views复制进去,又没有任何问题了。。。。。。

so,,我解决了,但是我不知道是什么问题,谢谢您的回答。

from vue-ueditor-wrap.

zhujujun avatar zhujujun commented on July 4, 2024

我也出现了这个问题 版本2.5.3 偶发性出现的 一个vue-ueditor-wrap组件渲染了二次 估计是watch value那里判断问题

from vue-ueditor-wrap.

haochuan9421 avatar haochuan9421 commented on July 4, 2024

我也出现了这个问题 版本2.5.3 偶发性出现的 一个vue-ueditor-wrap组件渲染了二次 估计是watch value那里判断问题

有没有啥规律能稳定复现一下?

from vue-ueditor-wrap.

zhujujun avatar zhujujun commented on July 4, 2024

这个不容易重现 特定的环境:gch下一些浏览器上传出现 昨天我跟你发的demo对比了下 我这边在组件上没加editorId属性用的随机的 估计是这个原因 现在是用的固定的id 没有出现2个文本编辑器了 但是我估计div还是渲染了2次现在出现一个编辑器相当解决了。
本质是一个vue-ueditor-wrap组件实例调用了2次initueditor方法 这个应该不知道怎么解决

from vue-ueditor-wrap.

momu-2016 avatar momu-2016 commented on July 4, 2024

我也出现了一样的问题,从列表进去编辑,就是两个,刷新一下页面,就只剩一个了

from vue-ueditor-wrap.

haochuan9421 avatar haochuan9421 commented on July 4, 2024

安装一下最新版的试一试 2.5.4

from vue-ueditor-wrap.

keminu avatar keminu commented on July 4, 2024

我也出现了同样的问题,版本2.4.1,偶尔会出现

from vue-ueditor-wrap.

keminu avatar keminu commented on July 4, 2024

我也出现了同样的问题,版本2.4.1,偶尔会出现

使用最新版本2.5.6 问题没有了

from vue-ueditor-wrap.

zhujujun avatar zhujujun commented on July 4, 2024

我这边又重现了2.5.6 刷新浏览出现2个富文本

  • **
    20A5CFB9-9D0C-44b4-B49E-C4CC7B34DDE8
    **

from vue-ueditor-wrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.