From 2e121a901cfb17134d6ca89a5bb7b1dd2eeb8b35 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Thu, 10 Sep 2020 20:59:28 +0200 Subject: [PATCH] =?UTF-8?q?ChangeView=E7=9A=84=E6=97=B6=E5=80=99=E5=85=B3?= =?UTF-8?q?=E9=97=ADEditSites=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Aside.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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 + } } } }