From ee78f1e652c7f1222f72cf06aa0b7c1bdd691e7f Mon Sep 17 00:00:00 2001
From: smallbun <2689170096@qq.com>
Date: Sat, 16 Sep 2023 23:25:28 +0800
Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/console-fe/src/services/app.ts | 25 ++++++-------------
1 file changed, 7 insertions(+), 18 deletions(-)
diff --git a/eiam-console/src/main/console-fe/src/services/app.ts b/eiam-console/src/main/console-fe/src/services/app.ts
index 5c36ded2..c3817842 100644
--- a/eiam-console/src/main/console-fe/src/services/app.ts
+++ b/eiam-console/src/main/console-fe/src/services/app.ts
@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*/
-import { download, filterParamConverter, sortParamConverter } from '@/utils/utils';
+import { filterParamConverter, sortParamConverter } from '@/utils/utils';
import type { RequestData } from '@ant-design/pro-components';
import type { SortOrder } from 'antd/es/table/interface';
import { request } from '@umijs/max';
@@ -62,27 +62,16 @@ export async function getAppConfig(id: string): Promise {
- let fileName = '';
- request(`/api/v1/app/saml2/download/idp_metadata_file`, {
- method: 'GET',
- params: { appId: id },
- responseType: 'blob',
- getResponse: true,
- })
- .then((res) => {
- fileName = res.headers['content-disposition'] || res.headers['Content-Disposition'];
- return res.data;
- })
- .then((res) => {
- download(new Blob([res]), fileName);
- });
+export async function removeApp(id: string): Promise> {
+ return request>(`/api/v1/app/delete/${id}`, {
+ method: 'DELETE',
+ });
}
/**
- * Save Saml2 Config
+ * Save App Config
*/
export async function saveAppConfig(
values: Record,