[Vue warn]: Property "visible" must be accessed with "$data


Vue项目 报错

[Vue warn]: Property "visible" must be accessed with "$data.visible" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internalsSee: https://vuejs.org/v2/api/#data

昨天遇到了这个问题,搜了各种答案找不到原因,很懵逼

WechatIMG5638.jpeg

原因如下!

WeChat08d316c8c09f5192fb49b3bc49b3cbb2.png

是的,就是这么无语的操作,这边把error对象传进去了

此处改成 err.message 即可


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM