Property "xxx" was accessed during render but is not defined on instance.

出现这种警告,一般是声明了对象类型的数据,却使用了对象里面的属性直接读取,而不是通过对象.属性读取值。如下图

从上图可以看出,在script中声明的对象类型,在template中也要使用对象.属性去读取值。

posted @ 2022-11-30 10:41  HainChen  阅读(3128)  评论(0编辑  收藏  举报