如果您使用 Vite(我推荐),图像会在构建过程中移动到“dist”目录。
src -assets -images leo-self.jpg <Card.Img variant="top" src="images/leo-self.jpg" className= "image"/> <Card.Body>