From 0d6e8d0d2a56c8af493e888891f346ae8e661a8e Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 13 May 2025 11:05:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(addMenuRole):=20=E6=9D=83=E9=99=90?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E4=BF=AE=E5=A4=8D=E5=BD=93=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=AE=A1=E7=90=86=E4=BB=85=E6=9C=89=E4=B8=80=E7=BA=A7?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E7=82=B9=E5=87=BB=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/addMenuRole/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/system/addMenuRole/index.vue b/src/views/system/addMenuRole/index.vue index 98da488..7a3ed0e 100644 --- a/src/views/system/addMenuRole/index.vue +++ b/src/views/system/addMenuRole/index.vue @@ -543,7 +543,7 @@ export default { } else { this.menuAllList[index].changed = false this.menuAllList[index].checkArr = [] - this.menuAllList[index].children.forEach((item) => { + this.menuAllList[index].children && this.menuAllList[index].children.forEach((item) => { item.changed = false item.checkArr = [] if (item.children) { From 74c2c3577e25143ec78f42fc0ef1c946361d5a4f Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 13 May 2025 11:09:48 +0800 Subject: [PATCH 2/2] feat(dashboard): dashboard visible after getRole --- src/views/dashboard/dashboard.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/dashboard.vue b/src/views/dashboard/dashboard.vue index e8404e2..a8082ef 100644 --- a/src/views/dashboard/dashboard.vue +++ b/src/views/dashboard/dashboard.vue @@ -1,5 +1,5 @@