Optimize code
This commit is contained in:
@@ -179,6 +179,8 @@ const Store = () => {
|
||||
setCurrentPage(response.data!.current)
|
||||
if (response.data!.current === response.data!.pages) {
|
||||
setHasNextPage(false)
|
||||
} else {
|
||||
setHasNextPage(true)
|
||||
}
|
||||
if (response.data!.current === 1) {
|
||||
setToolData(response.data!.records)
|
||||
|
||||
@@ -23,7 +23,7 @@ const UserFramework = () => {
|
||||
)}
|
||||
<Sidebar.Item
|
||||
path={'/'}
|
||||
icon={IconOxygenBack}
|
||||
icon={IconOxygenTool}
|
||||
text={'回到氧工具'}
|
||||
/>
|
||||
</Sidebar.ItemList>
|
||||
|
||||
Reference in New Issue
Block a user