From 96ea196119f229a3baafd2ac5e412b75be191f2d Mon Sep 17 00:00:00 2001 From: jingbowen <970029315@qq.com> Date: Thu, 16 Feb 2023 08:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=A7=92=E8=89=B2=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/system-management/role/role.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/system-management/role/role.component.ts b/src/app/system-management/role/role.component.ts index a0f8b17..ce88d8e 100644 --- a/src/app/system-management/role/role.component.ts +++ b/src/app/system-management/role/role.component.ts @@ -99,7 +99,6 @@ export class RoleComponent implements OnInit { } let body2 = instance.validateForm.value.menus || [] this.http.post('/api/services/app/Role/Create', body).subscribe((data: any) => { - resolve(data) this.http.post('/api/services/app/Role/SetRoleMenus', body2, { params: { roleId: data.result.id @@ -108,7 +107,6 @@ export class RoleComponent implements OnInit { resolve(data) this.message.create('success', '创建成功!'); this.getAllRoles() - return true }, err => { this.message.create('warning', '分配菜单错误!'); }) @@ -152,7 +150,7 @@ export class RoleComponent implements OnInit { } let body2 = instance.validateForm.value.menus || [] this.http.put('/api/services/app/Role/Update', body).subscribe((data: any) => { - resolve(data) + this.http.post('/api/services/app/Role/SetRoleMenus', body2, { params: { roleId: data.result.id @@ -160,7 +158,6 @@ export class RoleComponent implements OnInit { }).subscribe(data => { this.message.create('success', '修改成功!'); this.getAllRoles() - resolve(data) }, err => { this.message.create('warning', '分配菜单错误!');