vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read property ‘refs‘ of n

编程入门 行业动态 更新时间:2024-10-18 21:24:31

vue异常报错解决 Missing ref owner context. ref cannot be used on hois <a href=https://www.elefans.com/category/jswz/34/1758549.html style=或者是 Cannot read property ‘refs‘ of n"/>

vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read property ‘refs‘ of n

本地环境报错:[Vue warn]: Missing ref owner context. ref cannot be used on hoisted vnodes.
一部署到生产环境就报错这个:Cannot read property ‘refs’ of null

百度搜了两个关键字没有正确的解答,没有具体行报错,只能一行一行排查过去,发现是v-loading导致的,页面在读取数据需要加个等待加载的效果,这个v-loading需要放在最外层套个div上才行,不能放在里面的组件上

更多推荐

vue异常报错解决 Missing ref owner context. ref cannot be used on hois 或者是 Cannot read

本文发布于:2023-07-03 20:08:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1011298.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:或者是   报错   异常   ref   Missing

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!