Open comWang opened 11 months ago
1.使用了BorderBox组件的页面,卸载时必会出现Cannot read properties of null (reading '$el')错误;
如果是用路由跳转到其他页面因为报错跳转不了的 可以在组件销毁前if设置为false 没找到其他方法
想请教一下具体是怎么做的呢
给这个组件外层包裹一个div,在执行路由导航之前设置div v-if="false"
1.使用了BorderBox组件的页面,卸载时必会出现Cannot read properties of null (reading '$el')错误;