员工入职页面配色调整与title调整

This commit is contained in:
fuenmao
2026-09-11 14:35:24 +08:00
parent cdf2b0776a
commit 5d1ec4b137
5 changed files with 516 additions and 388 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# title
VITE_GLOB_APP_TITLE = 员工文件管理系统
VITE_GLOB_APP_TITLE = 员工管理系统
# 本地运行端口号
VITE_PORT = 8848
+6 -1
View File
@@ -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) {
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -62,7 +62,7 @@ interface LoginProps {
//默认值
const props = reactive<LoginProps>({
sysName: "员工文件管理系统",
sysName: "员工管理系统",
sysVersion: "",
sysLogo: "",
sysTenantOption: TenantEnum.CLOSE,
File diff suppressed because it is too large Load Diff