computed: {
addButtonDisabled() { return this.$refs.queryBox.selectSportsType === _const.ALL_SELECTION
},
报错,Error in render: "TypeError: Cannot read property 'selectSportsType' of undefined"百度了下
computed: {
addButtonDisabled() { this.$nextTick(()=>{ return this.$refs.queryBox.selectSportsType === _const.ALL_SELECTION
})
},这样才可以获取到
可是这样又没办法用computed了,
请问有什么解决办法吗,谢谢
偶然的你