vue-devui
vue-devui copied to clipboard
🐛 [Bug]: Anchor组件滚动事件没有销毁
Version
0.0.1
Vue Version
3.1.1
Link to minimal reproduction
https://vue-devui.github.io/components/anchor/
Step to reproduce
在看源码的时候发现的,不知道是不是这样设计的,后来去看了下angular版本确实是没有销毁,从Anchor生成的时候用了window.onscroll,组件销毁的时候没做任何处理
What is expected
window.onscroll = null
What is actually happening
No response
Any additional comments (optional)
No response