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
Hide whitespace changes
Inline
Side-by-side
client/src/Pages/Admin.js
View file @
0fbcbeaf
...
...
@@ -20,8 +20,10 @@ function Admin() {
useEffect
(()
=>
{
if
(
search
.
word
==
''
)
{
window
.
scrollTo
(
0
,
0
)
getProductlist
()
}
else
{
window
.
scrollTo
(
0
,
0
)
handleSearch
()
}
},
[
currentPage
])
...
...
client/src/Pages/ProductsList.js
View file @
0fbcbeaf
...
...
@@ -34,6 +34,7 @@ function ProductsList({ match }) {
},
[
mainCategory
])
useEffect
(()
=>
{
window
.
scrollTo
(
0
,
0
)
changePage
()
},
[
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