Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
0fbcbeaf
Commit
0fbcbeaf
authored
Feb 02, 2021
by
Kim, Subin
Browse files
상단으로 이동
parent
011ac7cb
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/Pages/Admin.js
View file @
0fbcbeaf
...
@@ -20,8 +20,10 @@ function Admin() {
...
@@ -20,8 +20,10 @@ function Admin() {
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
search
.
word
==
''
)
{
if
(
search
.
word
==
''
)
{
window
.
scrollTo
(
0
,
0
)
getProductlist
()
getProductlist
()
}
else
{
}
else
{
window
.
scrollTo
(
0
,
0
)
handleSearch
()
handleSearch
()
}
}
},
[
currentPage
])
},
[
currentPage
])
...
...
client/src/Pages/ProductsList.js
View file @
0fbcbeaf
...
@@ -34,6 +34,7 @@ function ProductsList({ match }) {
...
@@ -34,6 +34,7 @@ function ProductsList({ match }) {
},
[
mainCategory
])
},
[
mainCategory
])
useEffect
(()
=>
{
useEffect
(()
=>
{
window
.
scrollTo
(
0
,
0
)
changePage
()
changePage
()
},
[
currentPage
])
},
[
currentPage
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment