首页。最近学习页懒加载

This commit is contained in:
禺狨 2023-06-08 15:49:52 +08:00
parent 59b80c4158
commit 07cfa836a2
2 changed files with 10 additions and 1 deletions

View File

@ -29,6 +29,7 @@ export const CoursesModel: React.FC<PropInterface> = ({
>
<div className={styles["top-content"]}>
<Image
loading="lazy"
width={120}
height={90}
style={{ borderRadius: 10 }}
@ -65,7 +66,13 @@ export const CoursesModel: React.FC<PropInterface> = ({
)}
{progress >= 100 && (
<div className={styles["success"]}>
<Image width={24} height={24} src={mediaIcon} preview={false} />
<Image
loading="lazy"
width={24}
height={24}
src={mediaIcon}
preview={false}
/>
<span className="ml-8">!</span>
</div>
)}

View File

@ -56,6 +56,7 @@ const LatestLearnPage = () => {
>
<div style={{ width: 120 }}>
<Image
loading="lazy"
src={item.course.thumb}
width={120}
height={90}
@ -91,6 +92,7 @@ const LatestLearnPage = () => {
{item.record.progress >= 10000 && (
<>
<Image
loading="lazy"
width={24}
height={24}
src={mediaIcon}