首页文案修改和上传头像不需要提示成功

This commit is contained in:
禺狨 2023-03-28 14:11:29 +08:00
parent 0b567866e0
commit 842b7b1550
2 changed files with 3 additions and 4 deletions

View File

@ -57,7 +57,6 @@ export const UserInfoModel: React.FC<PropInterface> = ({ open, onCancel }) => {
const { status, response } = info.file; const { status, response } = info.file;
if (status === "done") { if (status === "done") {
if (response.code === 0) { if (response.code === 0) {
message.success(`${info.file.name} 上传成功`);
getUser(); getUser();
} else { } else {
message.error(response.msg); message.error(response.msg);

View File

@ -111,17 +111,17 @@ const IndexPage = () => {
<div className={styles["top-item"]}> <div className={styles["top-item"]}>
<div className={styles["title"]}> <div className={styles["title"]}>
<img className={styles["icon"]} src={myLesoon} /> <img className={styles["icon"]} src={myLesoon} />
<span></span> <span></span>
</div> </div>
<div className={styles["info"]}> <div className={styles["info"]}>
<div className={styles["info-item"]}> <div className={styles["info-item"]}>
<span></span> <span></span>
<strong> {stats.required_finished_hour_count || 0} </strong> <strong> {stats.required_finished_hour_count || 0} </strong>
<span>/ {stats.required_hour_count || 0}</span> <span>/ {stats.required_hour_count || 0}</span>
</div> </div>
{stats.nun_required_hour_count > 0 && ( {stats.nun_required_hour_count > 0 && (
<div className={styles["info-item"]}> <div className={styles["info-item"]}>
<span></span> <span></span>
<strong> {stats.nun_required_finished_hour_count || 0} </strong> <strong> {stats.nun_required_finished_hour_count || 0} </strong>
<span>/ {stats.nun_required_hour_count || 0}</span> <span>/ {stats.nun_required_hour_count || 0}</span>
</div> </div>