Skip to content

Commit

Permalink
[代码完善](master): 编辑前将字典明细临时清空,避免日志入库数据过长
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomePC committed Jun 7, 2021
1 parent 23f3b55 commit 196a736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/views/system/dict/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ export default {
this.$refs.dictDetail.dictId = val.id
this.$refs.dictDetail.crud.toQuery()
}
},
// 编辑前将字典明细临时清空,避免日志入库数据过长
[CRUD.HOOK.beforeToEdit](crud, form) {
// 将角色的菜单清空,避免日志入库数据过长
form.dictDetails = null
}
}
}
Expand Down

0 comments on commit 196a736

Please sign in to comment.