hookehuyr

fix 错误提示优化

/*
* @Date: 2022-05-18 22:56:08
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-02-10 15:13:01
* @LastEditTime: 2024-07-27 07:44:07
* @FilePath: /data-table/src/api/fn.js
* @Description: 文件描述
*/
......@@ -22,7 +22,11 @@ export const fn = (api) => {
} else {
// tslint:disable-next-line: no-console
// if (!res.data.show) return false;
showFailToast(res.data.msg);
showFailToast({
message: res.data.msg,
duration: 5000,
className: 'toast-fail'
});
return false;
}
})
......
......@@ -107,3 +107,8 @@
padding: 0.25rem;
border-bottom: 1px solid #05ae33;
}
.toast-fail {
width: 30vw;
text-align: justify;
}
......