diff --git a/src/components/Aside.vue b/src/components/Aside.vue index 1eb41db..799b87a 100644 --- a/src/components/Aside.vue +++ b/src/components/Aside.vue @@ -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 + } } } }