export default {data () { return {
items: this.$store.getters['webui/getDashboardOptions'], // 這里調(diào)用沒(méi)有問(wèn)題,能夠觸發(fā)到getDashboardOptions
fullScreen: false
}
},
computed: {
activeStation () { return this.$store.getters['webui/activeStation']
},
stationData () { return this.$store.getters['station/stationDataPivot']
}
},
watch: {
stationData (newValue, oldValue) { this.items = this.$store.getters['webui/getDashboardOptions']
// 這里如果有數(shù)據(jù)刷新,觸發(fā)不了
},
為什么第二次調(diào)用觸發(fā)不了getters的方法
慕標(biāo)琳琳
2019-03-15 15:07:56