From 5fb6986a1834db70aaa2c16e7dd0ddd32bdade18 Mon Sep 17 00:00:00 2001 From: mabo Date: Tue, 27 Jul 2021 16:13:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=97=B6=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/sys/menu-manage/menuManage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manager/src/views/sys/menu-manage/menuManage.vue b/manager/src/views/sys/menu-manage/menuManage.vue index 0c4c48c0..3129597b 100644 --- a/manager/src/views/sys/menu-manage/menuManage.vue +++ b/manager/src/views/sys/menu-manage/menuManage.vue @@ -448,11 +448,11 @@ export default { // 选择菜单 selectTree(v) { if (v.length > 0) { - // 转换null为"" let str = JSON.stringify(v); let menu = JSON.parse(str); this.form = menu[0]; + console.log(this.form); this.editTitle = menu[0].title; } else { this.cancelEdit(); @@ -492,6 +492,8 @@ export default { delete this.form.updateTime; delete this.form.selected; delete this.form.description; + delete this.form.children; + delete this.form.children; editPermission(this.form).then((res) => { this.submitLoading = false;