Complete main UI #37
@@ -179,6 +179,8 @@ const Store = () => {
|
|||||||
setCurrentPage(response.data!.current)
|
setCurrentPage(response.data!.current)
|
||||||
if (response.data!.current === response.data!.pages) {
|
if (response.data!.current === response.data!.pages) {
|
||||||
setHasNextPage(false)
|
setHasNextPage(false)
|
||||||
|
} else {
|
||||||
|
setHasNextPage(true)
|
||||||
}
|
}
|
||||||
if (response.data!.current === 1) {
|
if (response.data!.current === 1) {
|
||||||
setToolData(response.data!.records)
|
setToolData(response.data!.records)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ const UserFramework = () => {
|
|||||||
)}
|
)}
|
||||||
<Sidebar.Item
|
<Sidebar.Item
|
||||||
path={'/'}
|
path={'/'}
|
||||||
icon={IconOxygenBack}
|
icon={IconOxygenTool}
|
||||||
text={'回到氧工具'}
|
text={'回到氧工具'}
|
||||||
/>
|
/>
|
||||||
</Sidebar.ItemList>
|
</Sidebar.ItemList>
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ export const getVerifyStatus_async = () => {
|
|||||||
.verified
|
.verified
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getUserInfo = async (): Promise<UserWithPowerInfoVo> => {
|
export const getUserInfo = async (force = false): Promise<UserWithPowerInfoVo> => {
|
||||||
if (getLocalStorage(STORAGE_USER_INFO_KEY) !== null) {
|
if (getLocalStorage(STORAGE_USER_INFO_KEY) !== null && !force) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
resolve(
|
resolve(
|
||||||
JSON.parse(getLocalStorage(STORAGE_USER_INFO_KEY) as string) as UserWithPowerInfoVo
|
JSON.parse(getLocalStorage(STORAGE_USER_INFO_KEY) as string) as UserWithPowerInfoVo
|
||||||
|
|||||||
Reference in New Issue
Block a user