refactor:调高部分全局通知消息的 zIndex

This commit is contained in:
妙码生花 2024-07-08 16:03:23 +08:00
parent e4948d8f1c
commit 70799e3efc
4 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export function fileUpload(fd: FormData, params: anyObj = {}, forceLocal = false
ElNotification({
type: 'error',
message: errorMsg,
zIndex: 9999,
})
reject(errorMsg)
})

View File

@ -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
}

View File

@ -173,6 +173,7 @@ function createAxios<Data = any, T = ApiPromise<Data>>(axiosConfig: AxiosRequest
ElNotification({
type: 'error',
message: response.data.msg,
zIndex: 9999,
})
}
// 自动跳转到路由name或path
@ -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,
})
}
}
@ -279,6 +281,7 @@ function httpErrorStatusHandle(error: any) {
ElNotification({
type: 'error',
message,
zIndex: 9999,
})
}

View File

@ -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,
})
})
}