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
昨天遇到了这个问题,搜了各种答案找不到原因,很懵逼
![[Vue warn]: Property "visible" must be accessed with "$data [Vue warn]: Property "visible" must be accessed with "$data](http://code.bmoook.com/wp-content/uploads/2023/03/20230308204334-6408f37696637.jpg)
原因如下!
![[Vue warn]: Property "visible" must be accessed with "$data [Vue warn]: Property "visible" must be accessed with "$data](http://code.bmoook.com/wp-content/uploads/2023/03/20230308204335-6408f37730b7d.png)
是的,就是这么无语的操作,这边把error对象传进去了
此处改成 err.message 即可