From 75f6b8b8dac1b690b90b7c7ef51d01f08f01aa70 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Tue, 24 Jul 2018 08:47:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 46c43f8f24aff6ee6a924a850d737cfff1000a13 [formerly 46c43f8f24aff6ee6a924a850d737cfff1000a13 [formerly 46c43f8f24aff6ee6a924a850d737cfff1000a13 [formerly 46c43f8f24aff6ee6a924a850d737cfff1000a13 [formerly 2c607eb03b1d594ef8daff9e1222c08cc6e1320e [formerly 8ae7765744f33b8c33edd6d7f834d766cbae6344]]]]] Former-commit-id: 4df2f72598ac24b32dd3748e7aed16e86add67e5 Former-commit-id: 8a5de9475c71a8e331247b7efd3863a73a978e1b Former-commit-id: 8636966821cb13e888cc2c9297425574538d4f32 [formerly a05b9ddff6ec8e15e7c009291d0eac0e981e04ec] Former-commit-id: 74292749947634416e7978276fb733a2c8cf42a3 Former-commit-id: 36fa8c13af6242ff174c50e9fdf940986572da36 Former-commit-id: 33ed48b5383d90baa20a05a74e9451b8add4da1f Former-commit-id: 88fa0fd04c1c0155a1c4a131a51aeebb0829bc36 Former-commit-id: 484950dbcb878fefd04e9b336ba452de7f54ef34 --- .../demo/playground/store/menu/index.vue | 38 +++++++++++++++---- 1 file changed, 30 insertions(+), 8 deletions(-) diff --git a/src/pages/demo/playground/store/menu/index.vue b/src/pages/demo/playground/store/menu/index.vue index 4576e515..9eb1d3a6 100644 --- a/src/pages/demo/playground/store/menu/index.vue +++ b/src/pages/demo/playground/store/menu/index.vue @@ -9,13 +9,14 @@ 恢复
- +
@@ -27,13 +28,14 @@ 恢复
- +
@@ -82,8 +84,8 @@ export default { }, beforeDestroy () { if (this.menuHeaderChanged && this.menuAsideChanged) { - this.menuHeaderReset() - this.menuAsideReset() + this.d2adminMenuHeaderSet(this.menuHeaderBak) + this.d2adminMenuAsideSet(this.menuAsideBak) this.$notify({ title: '菜单恢复', message: '对侧边栏和顶栏菜单的修改已经复原', @@ -92,7 +94,7 @@ export default { return } if (this.menuHeaderChanged) { - this.menuHeaderReset() + this.d2adminMenuHeaderSet(this.menuHeaderBak) this.$notify({ title: '菜单恢复', message: '对顶栏菜单的修改已经复原', @@ -101,7 +103,7 @@ export default { return } if (this.menuAsideChanged) { - this.menuAsideReset() + this.d2adminMenuAsideSet(this.menuAsideBak) this.$notify({ title: '菜单恢复', message: '对侧边栏菜单的修改已经复原', @@ -120,6 +122,11 @@ export default { handleMenuHeaderSet () { this.menuHeaderChanged = true this.d2adminMenuHeaderSet(this.menuEmpty) + this.$notify({ + title: '菜单修改', + message: '对顶栏菜单的修改已经生效', + type: 'success' + }) }, /** * 修改侧边栏菜单 @@ -127,18 +134,33 @@ export default { handleMenuAsideSet () { this.menuAsideChanged = true this.d2adminMenuAsideSet(this.menuEmpty) + this.$notify({ + title: '菜单修改', + message: '对侧边栏菜单的修改已经生效', + type: 'success' + }) }, /** * 恢复顶栏菜单 */ menuHeaderReset () { this.d2adminMenuHeaderSet(this.menuHeaderBak) + this.$notify({ + title: '菜单恢复', + message: '对顶栏菜单的修改已经复原', + type: 'success' + }) }, /** * 恢复侧边栏菜单 */ menuAsideReset () { this.d2adminMenuAsideSet(this.menuAsideBak) + this.$notify({ + title: '菜单恢复', + message: '对侧边栏菜单的修改已经复原', + type: 'success' + }) } } }