fix(auth): 企微提醒卡片深链登录后回跳原目标
- 新增 shared/utils/redirect.ts 安全回跳校验(防开放重定向) - 路由守卫未登录跳转携带 redirect 完整深链,已登录访问登录页优先回跳 - 登录成功统一按 redirect 深链落地,支持企微卡片点击直达精益培训模块
This commit is contained in:
1 parent
f1beb6fefb
commit
1034435355
15 files changed
+656
-38
No files matched your search
@@ -25,7 +25,9 @@ const msg = useMessage();
|
||||
const downloading = ref(false);
|
||||
const downloadingAnnotated = ref(false);
|
||||
const latestReview = ref<ContractReviewRow | null>(null);
|
||||
let refreshTimer: ReturnType<typeof window.setTimeout> | undefined;
|
||||
// 浏览器端 window.setTimeout 返回 number;勿用 ReturnType<typeof window.setTimeout>,
|
||||
// 其在 @types/node 与 DOM lib 混用时会解析为 NodeJS.Timeout 导致 TS2322。
|
||||
let refreshTimer: number | undefined;
|
||||
let refreshing = false;
|
||||
let disposed = false;
|
||||
|
||||
|
||||
Reference in new issue
Block a user