From cb6e4b72952e5eaefe5b1466663baf5244f8a3c9 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 30 Dec 2024 13:58:40 +0800 Subject: [PATCH] fix: Export application error prompt repeated (#1945) --- ui/src/views/application/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index 3db8b4e25..15835ee2d 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -226,9 +226,11 @@ function settingApplication(row: any) { } const exportApplication = (application: any) => { applicationApi.exportApplication(application.id, application.name, loading).catch((e) => { - e.response.data.text().then((res: string) => { - MsgError(`导出失败:${JSON.parse(res).message}`) - }) + if (e.response.status !== 403) { + e.response.data.text().then((res: string) => { + MsgError(`导出失败:${JSON.parse(res).message}`) + }) + } }) } const importApplication = (file: any) => {