错误:
Property or method "hover" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property
意思:属性或方法“hover”不是在实例上定义的,而是在渲染过程中引用的。通过初始化该属性,确保该属性是反应性的,无论是在data选项中,还是在基于类的组件中。
解决办法:
相信看到这知道什么原因了吧。找到的错误
改为
报错就没了。
心得:
写代码还是需要认真点啊,当然有时候是无法避免的,调试是必不可少的
Property or method “hover“ is not defined on the instance but referenced during render. Make sure th
最新推荐文章于 2023-10-30 20:26:10 发布