[代码完善](master): 修改角色时将角色的菜单临时清空,避免日志入库数据过长

close https://github.com/elunez/eladmin/issues/609
This commit is contained in:
Zheng Jie
2021-06-07 15:38:07 +08:00
parent effcc156c4
commit 14aab905e0

View File

@@ -187,6 +187,8 @@ export default {
form.depts.forEach(function(dept) { form.depts.forEach(function(dept) {
_this.deptDatas.push(dept.id) _this.deptDatas.push(dept.id)
}) })
// 将角色的菜单清空,避免日志入库数据过长
form.menus = null
}, },
// 提交前做的操作 // 提交前做的操作
[CRUD.HOOK.afterValidateCU](crud) { [CRUD.HOOK.afterValidateCU](crud) {