Optimize code

This commit is contained in:
2024-02-21 11:47:13 +08:00
parent 2b1212b676
commit 66486f86f0
3 changed files with 5 additions and 3 deletions

View File

@@ -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)

View File

@@ -23,7 +23,7 @@ const UserFramework = () => {
)}
<Sidebar.Item
path={'/'}
icon={IconOxygenBack}
icon={IconOxygenTool}
text={'回到氧工具'}
/>
</Sidebar.ItemList>