feat: 全局状态管理(Zustand)、Header用户头像

This commit is contained in:
2026-05-15 19:21:07 +08:00
parent dead892f4e
commit 7e8470c5c2
7 changed files with 121 additions and 5 deletions

26
pnpm-lock.yaml generated
View File

@@ -29,6 +29,9 @@ importers:
react-router:
specifier: ^7.15.1
version: 7.15.1(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
zustand:
specifier: ^5.0.13
version: 5.0.13(@types/react@19.2.14)(react@19.2.6)
devDependencies:
'@eslint/js':
specifier: ^10.0.1
@@ -1467,6 +1470,24 @@ packages:
zod@4.4.3:
resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}
zustand@5.0.13:
resolution: {integrity: sha512-efI2tVaVQPqtOh114loML/Z80Y4NP3yc+Ff0fYiZJPauNeWZeIp/bRFD7I9bfmCOYBh/PHxlglQ9+wvlwnPikQ==}
engines: {node: '>=12.20.0'}
peerDependencies:
'@types/react': '>=18.0.0'
immer: '>=9.0.6'
react: '>=18.0.0'
use-sync-external-store: '>=1.2.0'
peerDependenciesMeta:
'@types/react':
optional: true
immer:
optional: true
react:
optional: true
use-sync-external-store:
optional: true
snapshots:
'@ant-design/colors@8.0.1':
@@ -2965,3 +2986,8 @@ snapshots:
zod: 4.4.3
zod@4.4.3: {}
zustand@5.0.13(@types/react@19.2.14)(react@19.2.6):
optionalDependencies:
'@types/react': 19.2.14
react: 19.2.6