fix(auth): 企微提醒卡片深链登录后回跳原目标

- 新增 shared/utils/redirect.ts 安全回跳校验(防开放重定向)
- 路由守卫未登录跳转携带 redirect 完整深链,已登录访问登录页优先回跳
- 登录成功统一按 redirect 深链落地,支持企微卡片点击直达精益培训模块
This commit is contained in:
runny committed 2026-09-11 04:09:56 +08:00
1 parent f1beb6fefb
commit 1034435355
15 files changed
+656 -38

No files matched your search

@@ -65,7 +65,9 @@ export function useShippingProcessingWorkItem(
const projection = ref<ShippingProcessingProjection | null>(null);
const loading = ref(false);
const error = ref<string | null>(null);
let timer: ReturnType<typeof window.setTimeout> | null = null;
// 浏览器端 window.setTimeout 返回 number;勿用 ReturnType<typeof window.setTimeout>,
// 其在 @types/node 与 DOM lib 混用时会解析为 NodeJS.Timeout 导致 TS2322。
let timer: number | null = null;
let generation = 0;
let stopped = false;
let refreshInFlight: { no: string; promise: Promise<void> } | null = null;