上传测试提醒框

This commit is contained in:
何童崇 2021-09-13 09:48:42 +08:00
parent 94ee3601c9
commit fb70e804f6
3 changed files with 13 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export function SnackbarHOC(options = {}) {
showNotification = (description, message = "提示", icon) => {
const data = {
message,
description
description,
}
if (icon) {
data.icon = icon;

View File

@ -229,3 +229,7 @@
width: 98%;
}
}
.ant-notification{
right: calc(50% - 200px) !important;
}

View File

@ -10,11 +10,19 @@ export async function getNoticeList(params) {
params,
});
if (res.message === 'success') {
notification.open({
message: "提示",
description: res.message || '请求错误',
placement:'topCenter',
duration:20
});
return res.data;
} else {
notification.open({
message: "提示",
description: res.message || '请求错误',
placement:'top'
});
}
}