mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-06 09:41:53 +00:00
refactor(frontend): 优化鉴权逻辑与路由处理
1. 调整刷新token接口的传参格式 2. 简化响应拦截器的401鉴权判断逻辑 3. 优化iframe路由url赋值写法 4. 移除冗余的路由转换判断逻辑 5. 新增路由守卫中认证失败跳转登录页的处理
This commit is contained in:
@@ -26,7 +26,7 @@ const AuthAPI = {
|
||||
return request<ApiResponse<JWTOut>>({
|
||||
url: `${API_PATH}/token/refresh`,
|
||||
method: "post",
|
||||
data: { refresh_token: refreshToken },
|
||||
data: refreshToken,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user