DataV-Vue3 icon indicating copy to clipboard operation
DataV-Vue3 copied to clipboard

[BorderBox*]:报错Cannot read properties of null (reading '$el')

Open comWang opened this issue 11 months ago • 3 comments

1.使用了BorderBox组件的页面,卸载时必会出现Cannot read properties of null (reading '$el')错误; 2. 因此,在使用v-if销毁页面或者keepalive移除缓存页面时,都会出现此问题; 3. 定位到原因可能是getRefDom方法未对入参ref进行非空判断,因为在上面的1、2情况下,ref的值会是null; 4. 如果是单独的大屏,没有离开页面的情形,自然不会出现上述情形; 5. 希望作者能够看到,感谢作者的付出!

comWang avatar Aug 02 '23 06:08 comWang