Skip to content

Commit

Permalink
refactor:调高部分全局通知消息的 zIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
build-admin committed Jul 8, 2024
1 parent e4948d8 commit 70799e3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/api/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function fileUpload(fd: FormData, params: anyObj = {}, forceLocal = false
ElNotification({
type: 'error',
message: errorMsg,
zIndex: 9999,
})
reject(errorMsg)
})
Expand Down
1 change: 1 addition & 0 deletions web/src/stores/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const useTerminal = defineStore(
ElNotification({
type: 'error',
message: i18n.global.t('terminal.Newly added tasks will never start because they are blocked by failed tasks'),
zIndex: 9999,
})
break
}
Expand Down
3 changes: 3 additions & 0 deletions web/src/utils/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(axiosConfig: AxiosRequest
ElNotification({
type: 'error',
message: response.data.msg,
zIndex: 9999,
})
}
// 自动跳转到路由name或path
Expand Down Expand Up @@ -200,6 +201,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(axiosConfig: AxiosRequest
ElNotification({
message: response.data.msg ? response.data.msg : i18n.global.t('axios.Operation successful'),
type: 'success',
zIndex: 9999,
})
}
}
Expand Down Expand Up @@ -279,6 +281,7 @@ function httpErrorStatusHandle(error: any) {
ElNotification({
type: 'error',
message,
zIndex: 9999,
})
}

Expand Down
4 changes: 4 additions & 0 deletions web/src/views/backend/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export const execInstall = (uid: string, id: number, extend: anyObj = {}) => {
ElNotification({
type: 'error',
message: res.msg,
zIndex: 9999,
})
state.dialog.common = false
}
Expand Down Expand Up @@ -344,6 +345,7 @@ export const onDisable = (confirmConflict = false) => {
ElNotification({
type: 'success',
message: i18n.global.t('module.The operation succeeds Please clear the system cache and refresh the browser ~'),
zIndex: 9999,
})
state.dialog.common = false
onRefreshTableData()
Expand Down Expand Up @@ -379,6 +381,7 @@ export const onDisable = (confirmConflict = false) => {
ElNotification({
type: 'error',
message: res.msg,
zIndex: 9999,
})
}
})
Expand All @@ -405,6 +408,7 @@ export const onEnable = (uid: string) => {
ElNotification({
type: 'error',
message: res.msg,
zIndex: 9999,
})
})
}
Expand Down

0 comments on commit 70799e3

Please sign in to comment.