是不是有遇到自己v-if绑定的参数明明在data里,但是就是提示错误:

在这里插入图片描述
错误的大概意思是:
Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property。
通过初始化该属性,确保该属性是生效的,无论是在data中,还是对于基于类的组件。

解决办法:刷新下页面,重新加载数据就可以生效了。

注:其他它绑定data参数出现这种问题,都可以刷新页面来解决。

Logo

前往低代码交流专区

更多推荐