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

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;
if (status === "done") {
if (response.code === 0) {
message.success(`${info.file.name} 上传成功`);
getUser();
} else {
message.error(response.msg);

View File

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