fix: Export application error prompt repeated (#1945)

This commit is contained in:
shaohuzhang1 2024-12-30 13:58:40 +08:00 committed by GitHub
parent 4bff2b4f38
commit cb6e4b7295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {