当前位置:   article > 正文

如何解决 Property or method “rowView“ is not defined on the instance but referenced during render. 报错_property or method "rowkey" is not defined

property or method "rowkey" is not defined
  1. 今天刚写完页面 点击详情按钮时,对话框弹不出来,F12查看Console 就已经报错了。

报错内容如下:

Property or method "View" 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

属性或方法“rowView”未在实例上定义,但在渲染过程中被引用。通过初始化属性,确保该属性在数据选项中或在基于类的组件中是反应性的

解决方法:

  1. 我的原因是将View()方法写在了methods的外面

    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/315803
推荐阅读
相关标签