Change View的时候关闭Detail

This commit is contained in:
haiyangcui
2020-08-28 12:40:48 +02:00
parent 7f9b7fc2c8
commit 7ef114d0e3

View File

@@ -54,12 +54,24 @@ export default {
set (val) {
this.SET_VIEW(val)
}
},
detail: {
get () {
return this.$store.getters.getDetail
},
set (val) {
this.SET_DETAIL(val)
}
}
},
methods: {
...mapMutations(['SET_VIEW']),
...mapMutations(['SET_VIEW', 'SET_DETAIL']),
changeView (e) {
this.view = e
// ChangeView 的时候关闭Detail页面
this.detail = {
show: false
}
}
}
}