Skip to content

Conversation

@shangwenhe
Copy link

@shangwenhe shangwenhe commented Nov 7, 2025

修复问题

img_v3_02rq_92f68249-a279-4794-bd11-9f2a88b744ag

问题分析:根目录直接跳转到 /survey ,但当前没有用户凭证,请求接口后报上面的四个凭证失效的异常。

修复路径: 如果直接跳转 根目录/ 自动跳转到 /login 页,login 页面判断用户状态,然后决定让用户登录还跳转到 /survey 页。

image

改动内容

  1. 将根目录 redirect 到登录页面。
  2. 在登录页面 判断用户是否有登录状态,以及登录状态是否有效。
  • 如果登录状态无效则停在当前页面
  • 如果登录状态有效则跳转到 survey
  1. 在用户登录状态失效或者没有权限异常时清除已有的登录凭证。并跳转到登录页

Issue

@skique
Copy link
Collaborator

skique commented Nov 11, 2025

@CodiumAI-Agent /review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants