This commit is contained in:
Rao 2025-02-25 17:47:09 +08:00
parent b7a2dad7a5
commit 6f560dc440
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
<Spin className="m-3" /> <Spin className="m-3" />
) : ( ) : (
<> <>
{['全部',...gateGory.categories].map((category) => ( {['全部',...gateGory.categories].map((category,idx) => (
<CoursesSectionTag category= {category} selectedCategory={selectedCategory} setSelectedCategory={setSelectedCategory}/> <CoursesSectionTag key={idx} category= {category} selectedCategory={selectedCategory} setSelectedCategory={setSelectedCategory}/>
))} ))}
</> </>
)} )}