修复登录缺陷和用户信息展示部分
This commit is contained in:
@@ -80,7 +80,7 @@ const _callByUser = cache(
|
||||
): Promise<ApiResponse<R>> => {
|
||||
// 获取用户令牌
|
||||
const cookie = await cookies()
|
||||
const token = cookie.get("auth_token")?.value
|
||||
const token = cookie.get("admin/auth_token")?.value
|
||||
if (!token) {
|
||||
return {
|
||||
success: false,
|
||||
|
||||
Reference in New Issue
Block a user