From e96322043649fdc8fc02d886ac19cf8342a43248 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期一, 04 十一月 2024 11:37:13 +0800 Subject: [PATCH] 在登录时判断用户密码过期需要修改时,由于还未登录去获取当前Session的用户时,是null,所以导致报错,增加如果为空,直接使用界面传的用户。 --- Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue index accfede..a77bb26 100644 --- a/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue @@ -250,7 +250,9 @@ checked: true, expanded: true, data:item.data, + parentId:item.parentId, level: item.level, + leaf:item.leaf, oid: item.oid, text: item.text } @@ -261,7 +263,9 @@ checked: false, expanded: true, data:item.data, + parentId:item.parentId, level: item.level, + leaf:item.leaf, oid: item.oid, text: item.text } @@ -269,7 +273,7 @@ // 鍦ㄥ崐閫夌姸鎬佷腑杩囨护鎺夐《绾ц妭鐐� oid 涓� root const filterSelectTreeData = parentData.filter(item => item.oid !== 'root'); - const data = [...filterSelectTreeData,...selectTreeData]; + const data = [...selectTreeData,...filterSelectTreeData]; const formData = { roleId: this.nodeRow.oid, type: this.type, -- Gitblit v1.9.3