feat: 1. 添加axios全局路由拦截进行自动添加请求jwt。 2.重新整理路由表。 3. 文档列表新增版本差异对比。 4.菜单路由可访问列表通过对接接口返回,添加全局路由检测。

5. 修改统一认证登录和管理员登录是通过接口形式进行,存储返回的accessToken。    6. 修改交叉评查的部分样式
This commit is contained in:
2025-11-18 11:06:24 +08:00
parent 8a50671c39
commit bfe39e45a9
53 changed files with 9503 additions and 2796 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ import { OAUTH_CONFIG, API_BASE_URL } from "~/config/api-config";
* @property {'common'} common - 普通用户,有基本的系统访问权限
* @property {'developer'} developer - 开发者/管理员,有完整的系统管理权限
*/
export type UserRole = 'common' | 'admin' | 'deptLeader' | 'groupLeader';
export type UserRole = 'common' | 'admin' | 'deptLeader' | 'groupLeader' | string;
/**
* 用户信息接口,对应 sso_users 表结构
@@ -365,7 +365,7 @@ export async function getUserSession(request: Request) {
*/
export async function createUserSession(params: {
isAuthenticated: boolean;
userRole: UserRole;
userRole: string;
redirectTo: string;
accessToken?: string;
refreshToken?: string;