-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Throw Uncaught TypeError when vConsole.destroy() #587
Labels
Details wanted
Need more details
Comments
看到错误信息,破案了,输出 vConsole 会报错:
这是变量不能读取吗,是有什么和 console.log 冲突了呢? |
@terwer 代码片段是完整的代码吗?在 ready 事件后再调用 destroy() 试试看? |
@Maizify 我有个复现链接 https://xul67b-5173.csb.app/ 源码: https://codesandbox.io/p/sandbox/loving-davinci-xul67b?file=%2Fsrc%2FApp.vue Vue 貌似没有 ready 事件,只有 onMounted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vConsole Version:
V3.15.0
Project:
RuoYi-Vue
销毁 VConsole 时会报错:
以上的操作放到了
Vue.prototype.$vconsole
中,直接调用this.toggle()
,能正常打开关闭,但是关闭后,会报如下错误:The text was updated successfully, but these errors were encountered: