在vue里出现ata functions should return an object: 和 Cannot read property '__ob__' of undefined 报错是因为在 data () {},里没有返回(return) 需要写成 data(){ return{ } } 就算没有数据也要写返回一个对象 (return)
vue 报错 data functions should return an object: 和 Cannot read property '__ob__' of undefined
最新推荐文章于 2024-04-01 14:28:21 发布