diff --git a/.env b/.env index 5257186..a78f9e6 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ # title -VITE_GLOB_APP_TITLE = 员工文件管理系统 +VITE_GLOB_APP_TITLE = 员工管理系统 # 本地运行端口号 VITE_PORT = 8848 diff --git a/src/routers/index.ts b/src/routers/index.ts index c361d7f..8e29f21 100644 --- a/src/routers/index.ts +++ b/src/routers/index.ts @@ -36,6 +36,7 @@ const routerMode = { * @param meta ==> 路由菜单元信息 * @param meta.icon ==> 菜单和面包屑对应的图标 * @param meta.title ==> 路由标题 (用作 document.title || 菜单的名称) + * @param meta.standaloneTitle ==> 是否仅显示路由标题,不拼接系统名称 * @param meta.activeMenu ==> 当前路由为详情页时,需要高亮的菜单 * @param meta.isLink ==> 路由外链时填写的访问地址 * @param meta.isHide ==> 是否在菜单中隐藏 (通常列表详情页需要隐藏) @@ -62,7 +63,11 @@ router.beforeEach(async (to, from, next) => { // 2.动态设置标题 const title = import.meta.env.VITE_GLOB_APP_TITLE; - document.title = to.meta.title ? `${to.meta.title} - ${title}` : title; + document.title = to.meta.standaloneTitle && to.meta.title + ? String(to.meta.title) + : to.meta.title + ? `${to.meta.title} - ${title}` + : title; // 3.判断是访问登陆页,有 Token 就在当前页面,没有 Token 重置路由到登陆页 if (to.path.toLocaleLowerCase() === LOGIN_URL) { diff --git a/src/routers/modules/staticRouter.ts b/src/routers/modules/staticRouter.ts index 4e8cc00..138500b 100644 --- a/src/routers/modules/staticRouter.ts +++ b/src/routers/modules/staticRouter.ts @@ -35,7 +35,7 @@ export const staticRouter: RouteRecordRaw[] = [ path: "/onboarding/fill", name: "onboardingFill", component: () => import("@/views/onboarding/fill/index.vue"), - meta: { title: "入职资料填写" } + meta: { title: "入职服务", standaloneTitle: true } }, { path: "/layout", diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 0af05ae..35f6e52 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -62,7 +62,7 @@ interface LoginProps { //默认值 const props = reactive({ - sysName: "员工文件管理系统", + sysName: "员工管理系统", sysVersion: "", sysLogo: "", sysTenantOption: TenantEnum.CLOSE, diff --git a/src/views/onboarding/fill/index.vue b/src/views/onboarding/fill/index.vue index e6d050f..eea3a7c 100644 --- a/src/views/onboarding/fill/index.vue +++ b/src/views/onboarding/fill/index.vue @@ -4,8 +4,10 @@
- - OnboardX 智能入职服务 + + + + 智能入职服务

很高兴与你相遇,欢迎加入!

请完成以下入职流程:填写登记信息、上传证件、阅读并签署相关入职材料,开启你的职场新旅程。

@@ -23,48 +25,44 @@