fix: Export application error prompt repeated (#1945)
This commit is contained in:
parent
4bff2b4f38
commit
cb6e4b7295
@ -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) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user