feat: add localforage
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
// import FileSharing from '@/components/FileSharing'
|
||||
// import DefaultLayOut from '@/layout/default'
|
||||
|
||||
import HomeIndex from '@/components/HomeIndex'
|
||||
|
||||
// import Loading from '@/components/Loading'
|
||||
import { useEffect } from 'react'
|
||||
import { handleLocalforage } from '@/utils/localforage'
|
||||
|
||||
export default () => {
|
||||
useEffect(() => {
|
||||
handleLocalforage.getItem('token').then((res: any) => {
|
||||
console.log(JSON.parse(res))
|
||||
})
|
||||
}, [])
|
||||
return (
|
||||
<div>
|
||||
{/*<DefaultLayOut />*/}
|
||||
{/*<BlurCard />*/}
|
||||
<HomeIndex />
|
||||
{/*<Loading />*/}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user