change
<Route path="gls">
to
<Route path="/gls">
in App Component
and change
<Link to='GLS'>GLS-class</Link>
to
<Link to='/gls'>GLS-class</Link>
in Home Component
and change
{
"id": 0,
"class": "A-Class",
"image": "./ModImages/Aclass.jpg",
"price": "It goes around $37,300",
},
{
"id": 1,
"class": "GLS-Class",
"image": "./ModImages/GLSclass.jpg",
"price": "It goes around $47,700"
}
]
to
[
{
"id": 0,
"class": "A-Class",
"image": "./ModImages/Aclass.jpg",
"price": "It goes around $37,300"
},
{
"id": 1,
"class": "GLS-Class",
"image": "./ModImages/GLSclass.jpg",
"price": "It goes around $47,700"
}
]
in data
json file
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…