Complete main UI #37

Merged
FatttSnake merged 192 commits from FatttSnake into dev 2024-02-23 16:31:17 +08:00
3 changed files with 5 additions and 3 deletions
Showing only changes of commit 66486f86f0 - Show all commits

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>

View File

@@ -76,8 +76,8 @@ export const getVerifyStatus_async = () => {
.verified
}
export const getUserInfo = async (): Promise<UserWithPowerInfoVo> => {
if (getLocalStorage(STORAGE_USER_INFO_KEY) !== null) {
export const getUserInfo = async (force = false): Promise<UserWithPowerInfoVo> => {
if (getLocalStorage(STORAGE_USER_INFO_KEY) !== null && !force) {
return new Promise((resolve) => {
resolve(
JSON.parse(getLocalStorage(STORAGE_USER_INFO_KEY) as string) as UserWithPowerInfoVo