Skip to content

Commit

Permalink
fix: Export application error prompt repeated (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Dec 30, 2024
1 parent 4bff2b4 commit cb6e4b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ui/src/views/application/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit cb6e4b7

Please sign in to comment.