优化后台界面与无操作退出体验

This commit is contained in:
Cheng Zhou
2026-06-10 15:20:06 +08:00
parent ea3f19e241
commit 84e55af8fe
39 changed files with 793 additions and 608 deletions
+13
View File
@@ -74,4 +74,17 @@ describe("Login protocol agreement", () => {
expect(restoreIndex).toBeLessThan(projectOverviewRouteIndex);
expect(source).toContain("preferActive: !!auth.user?.is_admin");
});
it("shows persistent logout reason notices on the login card", () => {
const source = readLoginView();
expect(source).toContain('v-if="logoutNotice"');
expect(source).toContain("LOGOUT_REASON_TIMEOUT");
expect(source).toContain("LOGOUT_REASON_AUTH_EXPIRED");
expect(source).toContain("LOGOUT_REASON_MANUAL");
expect(source).toContain("30 分钟未检测到任何操作。为保护项目数据,请重新登录后继续。");
expect(source).toContain("登录状态已失效");
expect(source).toContain("已安全退出");
expect(source).toContain(".logout-notice");
});
});