[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