遇到vue的一个报错红色警告

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

我在进行接口操作时,修改了用户的账号密码,然后出现了以上的错误

activeItem属性或方法没有定义,检查一下后台返回值,或者查看一下代码顺序是否存在逻辑错误。

属性或方法“activeItem”未在实例上定义,但在渲染期间被引用。

activeItem 初始化定义

img

img

img


我已经做了初始化操作,并且在调用接口前activeItem已经有值了

这个应该是你代码哪里写错了,贴个完整的代码出来