ChangeView的时候关闭EditSites页面

This commit is contained in:
haiyangcui
2020-09-10 20:59:28 +02:00
parent 3a2a16a168
commit 2e121a901c

View File

@@ -62,16 +62,27 @@ export default {
set (val) {
this.SET_DETAIL(val)
}
},
editSites: {
get () {
return this.$store.getters.getEditSites
},
set (val) {
this.SET_EDITSITES(val)
}
}
},
methods: {
...mapMutations(['SET_VIEW', 'SET_DETAIL']),
...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_EDITSITES']),
changeView (e) {
this.view = e
// ChangeView 的时候关闭Detail页面
// ChangeView 的时候关闭Detail和EditSites页面
this.detail = {
show: false
}
this.editSites = {
show: false
}
}
}
}