From 226ca4954ef32e3fc6a9201ceb859288a1a27081 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Mon, 7 Jun 2021 15:43:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=A3=E7=A0=81=E5=AE=8C=E5=96=84](master):?= =?UTF-8?q?=20=E7=BC=96=E8=BE=91=E5=89=8D=E5=B0=86=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E4=B8=B4=E6=97=B6=E6=B8=85=E7=A9=BA=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=97=A5=E5=BF=97=E5=85=A5=E5=BA=93=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=BF=87=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close https://github.com/elunez/eladmin/issues/612 --- src/views/system/dict/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index 20c818b..f102023 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -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 } } }