配置 mdx 与 turbopack 继承;修复退出登录后循环跳转的问题;button 统一复用可导出样式并微调样式

This commit is contained in:
2025-06-06 16:17:33 +08:00
parent 7fff0308d0
commit ce4f7e272c
11 changed files with 175 additions and 68 deletions

View File

@@ -18,8 +18,9 @@ export const createProfileStore = (init: User|null) => {
profile: init,
refreshProfile: async () => {
const profile = await getProfile()
if (!profile.success) return
setState({profile: profile.data})
setState({
profile: profile.success ? profile.data : null,
})
},
}))
}