Commit 7bca069c authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

asdf

parent ccc8f484
...@@ -12,7 +12,7 @@ function MainNav() { ...@@ -12,7 +12,7 @@ function MainNav() {
<img alt="로고" src="/icon/footprint.svg" width="24" height="24" /> <img alt="로고" src="/icon/footprint.svg" width="24" height="24" />
{' '}KU# {' '}KU#
</Navbar.Brand> </Navbar.Brand>
<Nav> <Nav className="ml-auto">
{user ? <> <Nav.Link className="text-light" onClick={() => handleLogout()}>Logout</Nav.Link> {user ? <> <Nav.Link className="text-light" onClick={() => handleLogout()}>Logout</Nav.Link>
<Nav.Link className="text-light" href="/account"> Mypage </Nav.Link> <Nav.Link className="text-light" href="/account"> Mypage </Nav.Link>
</> </>
......
...@@ -114,7 +114,7 @@ function Product({ match, location }) { ...@@ -114,7 +114,7 @@ function Product({ match, location }) {
</style> </style>
<Row className="justify-content-center mt-5 mx-0"> <Row className="justify-content-center mt-5 mx-0">
<Col sm={11} md={4}> <Col sm={11} md={4}>
<img src={product.main_img} style={{ objectFit: "contain", width: "100%" }} /> <img src={`/images/${product.main_img}`} style={{ objectFit: "contain", width: "100%" }} />
</Col> </Col>
<Col sm={11} md={4} className="align-middle mt-4"> <Col sm={11} md={4} className="align-middle mt-4">
<h3 className="mb-4">{product.name}</h3> <h3 className="mb-4">{product.name}</h3>
......
...@@ -16,7 +16,7 @@ const getSubCategory=(req,res)=>{ ...@@ -16,7 +16,7 @@ const getSubCategory=(req,res)=>{
} }
const getsubId=(req,res,next,sub)=>{ const getsubId=(req,res,next,sub)=>{
const subcategory = await category.find({"Dress"}) // const subcategory = await category.find({"Dress"})
console.log('sub=',sub) console.log('sub=',sub)
next() next()
......
...@@ -83,4 +83,4 @@ const subcategoryId = async (req, res, next, subcategory) => { ...@@ -83,4 +83,4 @@ const subcategoryId = async (req, res, next, subcategory) => {
} }
} }
export default { imageUpload, regist, categoryId, getlist, subcategoryId, subgetlist } export default { imageUpload, regist, categoryId, getlist, subcategoryId, subgetlist, getToHome }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment