Commit 2d298194 by rjdyx Committed by GitHub

fix:修复编辑角色后没有清空form的menus属性,导致新增时加入了上一个角色的菜单信息 (#108)

Co-authored-by: rjdyx <1191200688@qq.com>
parent 4c0f83a3
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment