[Vue warn]: Property or method “activeNames” 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.
Property or method “XX” is not defined,使用vue时经常出现该问题,简单记录一下问题出现的原因,可以遇到可以快速找出问题。我这边遇到这个问题是因为如下几种情况:
Property or method “xx“ is not defined on the instance but referenced during render
[Vue warn]: Property or method “activeNames” 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.Property or method “