mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-21 22:55:36 +00:00
refactor:调高部分全局通知消息的 zIndex
This commit is contained in:
parent
e4948d8f1c
commit
70799e3efc
@ -59,6 +59,7 @@ export function fileUpload(fd: FormData, params: anyObj = {}, forceLocal = false
|
||||
ElNotification({
|
||||
type: 'error',
|
||||
message: errorMsg,
|
||||
zIndex: 9999,
|
||||
})
|
||||
reject(errorMsg)
|
||||
})
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user