标签: javascript ecmascript-6 vue.js vuejs2 vue-component
Hello Guys,
在运行业力测试时偶然发现了VueJS上的这些类型的警告:
'[Vue warn]: Error in data(): "TypeError: Cannot read property 'enabled' of undefined“
'[Vue warn]: Error in data(): "TypeError: Cannot read property 'enabled' of undefined
尽管enabled道具使用如下:something.enabled和something来自:
enabled
something.enabled
something
computed: { ...mapState(['app', 'something']) }
提前谢谢!