This commit is contained in:
1 parent
21abd01593
commit
2483dd933a
5 files changed
+30
-15
No files matched your search
@@ -56,6 +56,17 @@ const router = createRouter({
|
||||
component: () => import("../views/auth/Login.vue"),
|
||||
meta: { requiresAuth: false, requiresInit: false }
|
||||
},
|
||||
{
|
||||
// 学员扫码签到:独立手机端 H5 页(2026-11-25 调整)。顶层路由,直接渲染在
|
||||
// App.vue 的裸 RouterView —— 完全脱离平台壳布局(侧栏/桌面样式),扫码免
|
||||
// 登录直达;页面内自行完成工号签到与自动登录。显式 requiresAuth:false +
|
||||
// requiresInit:false 放行路由守卫(meta 缺省 = undefined 时守卫仍按需
|
||||
// 登录拦截,必须显式 false)。
|
||||
path: "/m/training/checkin/:token",
|
||||
name: "mobileTrainingCheckin",
|
||||
component: () => import("../views/training/CheckinPage.vue"),
|
||||
meta: { requiresInit: false, requiresAuth: false }
|
||||
},
|
||||
// Embed chat is a separate entry (embed.html + embed-main.ts), not this SPA.
|
||||
{
|
||||
path: "/register",
|
||||
@@ -184,16 +195,16 @@ const router = createRouter({
|
||||
component: () => import("../views/training/CourseDetail.vue"),
|
||||
meta: { requiresInit: true, requiresAuth: true }
|
||||
},
|
||||
{
|
||||
// 学员扫码签到落地页(2026-11 企微扫码免登):企微「扫一扫」直接打开,
|
||||
// 页面内自行完成免登(OAuth 静默授权)/自动登录/倒计时/点击签到,
|
||||
// 故显式 requiresAuth:false + requiresInit:false 放行路由守卫
|
||||
// (meta 缺省 = undefined 时守卫仍按需登录拦截,必须显式 false)。
|
||||
path: "training/checkin/:token",
|
||||
name: "trainingCheckin",
|
||||
component: () => import("../views/training/CheckinPage.vue"),
|
||||
meta: { requiresInit: false, requiresAuth: false }
|
||||
},
|
||||
{
|
||||
// 旧平台内签到路径兼容重定向(2026-11-25 签到页迁移为独立手机端 H5):
|
||||
// 已投屏/已分发的旧二维码短窗口内仍可扫;携 query 重定向,OAuth 回跳
|
||||
// 参数(code/state)不丢。
|
||||
path: "training/checkin/:token",
|
||||
redirect: (to) => ({
|
||||
path: `/m/training/checkin/${to.params.token}`,
|
||||
query: to.query
|
||||
})
|
||||
},
|
||||
{
|
||||
// 组织架构:租户级共享组织架构(部门 + 员工档案),
|
||||
// 业务模块(企业培训等)按需引用,部门岗位只维护一份。
|
||||
|
||||
Reference in new issue
Block a user