Property or method “index” 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.
属性或方法“index”不是在实例上定义的,而是在呈现时引用的。通过初始化该属性,确保该属性是响应式的,无论是在数据选项中,还是在基于类的组件中。
**解决方案 **
查看文件中是否有这个变量,是否定义了这个变量