From 571fe1c6967c6c0a4a84d6a17ed1c33c82f1dcb3 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Fri, 21 Jan 2022 10:34:28 +0800 Subject: [PATCH] edit --- .../components/api-auth/auth-drawer/auth-drawer.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts index f663f959..4dfa13f6 100644 --- a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts +++ b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts @@ -52,7 +52,7 @@ export class AuthDrawerComponent implements OnInit { functionAction(item?: any, isDisabled = false) { if (item) { - this.functionInfo = { ...item, buttonId: item.id }; + this.functionInfo = { ...item, buttonId: item.id, id: item.functionButtonId }; } else { this.functionInfo = {}; } @@ -80,7 +80,7 @@ export class AuthDrawerComponent implements OnInit { const modal = this.modal.warning({ nzTitle: '是否确定删除该权限', nzOnOk: () => { - this.service.request(this.service.$api_delete_menu_function, [item.id]).subscribe(res => { + this.service.request(this.service.$api_delete_menu_function, [item.functionButtonId]).subscribe(res => { if (res) { this.service.msgSrv.success('删除成功'); this.st.load(1);