We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
发现当切换了路由,或者本地开发热重载之后 会报:
beforeMount hook: "TypeError: Cannot read property 'scroll' of undefined" TypeError: Cannot read property 'scroll' of undefined
beforeMount hook: "TypeError: Cannot read property 'scroll' of undefined"
TypeError: Cannot read property 'scroll' of undefined
The text was updated successfully, but these errors were encountered:
@hasasa 单看错误我无法定位到问题,可以在codepin平台或是类似线上平台上复现一下例子吗?
Sorry, something went wrong.
这个错误我看了应该不是你这个封装的问题,而是编辑器本身的问题。
试着将 beforeMount 中的代码移到 mounted 中:
beforeMount
mounted
mounted () { // beforeMount code // ... this.$nextTick(() => { this.editor.targetElm = this.$el; this.editor.render() }) }
No branches or pull requests
发现当切换了路由,或者本地开发热重载之后
会报:
beforeMount hook: "TypeError: Cannot read property 'scroll' of undefined"
TypeError: Cannot read property 'scroll' of undefined
The text was updated successfully, but these errors were encountered: