diff --git a/web/src/api/common.ts b/web/src/api/common.ts index 3b4392e8..a0f9169e 100644 --- a/web/src/api/common.ts +++ b/web/src/api/common.ts @@ -59,6 +59,7 @@ export function fileUpload(fd: FormData, params: anyObj = {}, forceLocal = false ElNotification({ type: 'error', message: errorMsg, + zIndex: 9999, }) reject(errorMsg) }) diff --git a/web/src/stores/terminal.ts b/web/src/stores/terminal.ts index 173f288a..a9a5763d 100644 --- a/web/src/stores/terminal.ts +++ b/web/src/stores/terminal.ts @@ -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 } diff --git a/web/src/utils/axios.ts b/web/src/utils/axios.ts index a6839142..707c2fca 100644 --- a/web/src/utils/axios.ts +++ b/web/src/utils/axios.ts @@ -173,6 +173,7 @@ function createAxios>(axiosConfig: AxiosRequest ElNotification({ type: 'error', message: response.data.msg, + zIndex: 9999, }) } // 自动跳转到路由name或path @@ -200,6 +201,7 @@ function createAxios>(axiosConfig: AxiosRequest ElNotification({ message: response.data.msg ? response.data.msg : i18n.global.t('axios.Operation successful'), type: 'success', + zIndex: 9999, }) } } @@ -279,6 +281,7 @@ function httpErrorStatusHandle(error: any) { ElNotification({ type: 'error', message, + zIndex: 9999, }) } diff --git a/web/src/views/backend/module/index.ts b/web/src/views/backend/module/index.ts index aa267d8d..8ff366db 100644 --- a/web/src/views/backend/module/index.ts +++ b/web/src/views/backend/module/index.ts @@ -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 } @@ -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() @@ -379,6 +381,7 @@ export const onDisable = (confirmConflict = false) => { ElNotification({ type: 'error', message: res.msg, + zIndex: 9999, }) } }) @@ -405,6 +408,7 @@ export const onEnable = (uid: string) => { ElNotification({ type: 'error', message: res.msg, + zIndex: 9999, }) }) }