From bee71216b0ab8a84dc35c41743bf038fcf897937 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Thu, 30 Dec 2021 16:37:34 +0800 Subject: [PATCH] edit --- .../routes/menu-manager/components/index/index.component.html | 2 +- .../routes/menu-manager/components/index/index.component.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/routes/menu-manager/components/index/index.component.html b/src/app/routes/menu-manager/components/index/index.component.html index 0f8d5bc5..6f3f72d1 100644 --- a/src/app/routes/menu-manager/components/index/index.component.html +++ b/src/app/routes/menu-manager/components/index/index.component.html @@ -1,5 +1,5 @@ - \ No newline at end of file diff --git a/src/app/routes/menu-manager/components/index/index.component.ts b/src/app/routes/menu-manager/components/index/index.component.ts index c828397d..f267e2ed 100644 --- a/src/app/routes/menu-manager/components/index/index.component.ts +++ b/src/app/routes/menu-manager/components/index/index.component.ts @@ -32,6 +32,7 @@ export class MenuManagerComponentsIndexComponent implements OnInit { { name: '运营后台', appId: this.envSrv.env.appId, enName: 'tms-obc-web' } ]; this.selectedPlatform = this.platforms[0]; + this.platformChange(this.selectedPlatform); } platformChange(e: { name: string; appId: string }) { @@ -44,7 +45,7 @@ export class MenuManagerComponentsIndexComponent implements OnInit { } loadMenus(appId: string) { - this.service.request(this.service.$api_get_all, { appId }, 'POST', true, 'FORM').subscribe(res => { + this.service.request(this.service.$api_get_one, { appId },'POST',false).subscribe(res => { console.log(res); this.menus = res;