feat: add localforage

This commit is contained in:
landaiqing
2024-04-29 16:00:47 +08:00
parent edcff9a7c7
commit 9762e15b8b
17 changed files with 726 additions and 147 deletions

View File

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