修复系统概览数据不准确的查询。修复交叉评查意见列表的数量查询。优化全局消息提示的层级。优化提交意见进行局部更新。

This commit is contained in:
2025-07-25 09:49:36 +08:00
parent 3dab54d551
commit ccd5cdf71e
29 changed files with 2444 additions and 1035 deletions
+14 -14
View File
@@ -122,16 +122,16 @@ export async function action({ request }: ActionFunctionArgs) {
// 打印session信息
console.log("=== 测试用户登录 - Session信息 ===");
console.log("保存到session的userInfo:", enhancedUserInfo);
console.log("session数据结构:", {
isAuthenticated: true,
userRole: userRole,
accessToken: "mock_access_token_for_test",
refreshToken: "mock_refresh_token_for_test",
tokenIssuedAt: Date.now(),
tokenExpiresIn: mockTokenExpiresIn,
frontendJWT: frontendJWT,
userInfo: enhancedUserInfo
});
// console.log("session数据结构:", {
// isAuthenticated: true,
// userRole: userRole,
// accessToken: "mock_access_token_for_test",
// refreshToken: "mock_refresh_token_for_test",
// tokenIssuedAt: Date.now(),
// tokenExpiresIn: mockTokenExpiresIn,
// frontendJWT: frontendJWT,
// userInfo: enhancedUserInfo
// });
const cookie = await sessionStorage.commitSession(session);
@@ -184,7 +184,7 @@ export default function Login() {
const handleOAuthLogin = () => {
try {
// 创建OAuth客户端
const oauthClient = new OAuthClient(OAUTH_CONFIG);
const oauthClient = new OAuthClient(OAUTH_CONFIG.value);
// 生成状态值
const state = oauthClient.generateState();
@@ -205,8 +205,8 @@ export default function Login() {
useEffect(() => {
// 检查OAuth配置是否完整
if (!OAUTH_CONFIG.serverUrl || !OAUTH_CONFIG.clientId || !OAUTH_CONFIG.clientSecret) {
console.error("OAuth2.0配置不完整:", OAUTH_CONFIG);
if (!OAUTH_CONFIG.value.serverUrl || !OAUTH_CONFIG.value.clientId || !OAUTH_CONFIG.value.clientSecret) {
console.error("OAuth2.0配置不完整:", OAUTH_CONFIG.value);
}
}, []);
@@ -280,4 +280,4 @@ export default function Login() {
</div>
</div>
);
}
}