Vue中使用Editor,报错 Cannot read property 'scrollTo' of undefined
错误如下:
ueditor.all.min.js:13 Uncaught TypeError: Cannot read property 'scrollTo' of undefined
at window.onscroll (ueditor.all.min.js:13)
打开ueditor下的ueditor.all.js文件中, 搜索 lastScrollY
17471 var lastScrollY;
17472 window.onscroll = function{
17473 if(lastScrollY === null){
17474 lastScrollY = this.scrollv ? ?
174751 }else if(this.lastScrollY == O && lastScrollY 1= O && !me){
17476 me.window.scrollro(O,O);
17477 lastScrollY = null;
17478 }
17479 }
在 lastScrollY != 0 后 加上 && !me 就好了,亲测有效。