From 2d29819461aff70d9797dcad0987f968de0ead85 Mon Sep 17 00:00:00 2001 From: rjdyx Date: Tue, 2 Mar 2021 19:23:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=90=8E=E6=B2=A1=E6=9C=89=E6=B8=85=E7=A9=BA?= =?UTF-8?q?form=E7=9A=84menus=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=97=B6=E5=8A=A0=E5=85=A5=E4=BA=86=E4=B8=8A?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E8=A7=92=E8=89=B2=E7=9A=84=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20(#108)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: rjdyx <1191200688@qq.com> --- src/views/system/role/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index c6af85b..467a37f 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -173,8 +173,9 @@ export default { this.$refs.menu.setCheckedKeys([]) }, // 新增前初始化部门信息 - [CRUD.HOOK.beforeToAdd]() { + [CRUD.HOOK.beforeToAdd](crud, form) { this.deptDatas = [] + form.menus = null }, // 编辑前初始化自定义数据权限的部门信息 [CRUD.HOOK.beforeToEdit](crud, form) {