优化登录流程,添加白名单管理功能,调整页面布局与样式
This commit is contained in:
15
src/app/admin/_server/profile.tsx
Normal file
15
src/app/admin/_server/profile.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import {ReactNode} from 'react'
|
||||
import {cookies} from 'next/headers'
|
||||
|
||||
export type ProfileProps = {}
|
||||
|
||||
export default async function Profile(props: ProfileProps) {
|
||||
const store = await cookies()
|
||||
const info = store.get('auth_info')?.value
|
||||
const data = info ? JSON.parse(info) : undefined
|
||||
return (
|
||||
<div>
|
||||
下午好,{data?.payload.name}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user