【https://bbs.csdn.net/topics/393404643】,解決方案在這個論壇中,記錄一下。
A:數組和對象不支持雙向綁定,需要使用$set
vue設置對象值時應該使用$set this.categories = result.data.body //改為: this.$set(this,'categories',result.data.body)
【https://bbs.csdn.net/topics/393404643】,解決方案在這個論壇中,記錄一下。
A:數組和對象不支持雙向綁定,需要使用$set
vue設置對象值時應該使用$set this.categories = result.data.body //改為: this.$set(this,'categories',result.data.body)
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。