From 7ed5f33e7bd9ca26fb41700e518234b973841921 Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: 星期三, 24 四月 2024 22:30:52 +0800 Subject: [PATCH] !107 add 新增岗位编码与部门编码 并将岗位放到部门下 * add 新增获取岗位选择框列表 * update 岗位查询树表和单表相互undefined * update 岗位查询增加单部门查询 * update 优化类别编码与后台一致性 * add 新增岗位部门树以及类别编码 * add 部门增加类别代码 --- src/utils/i18n.ts | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/utils/i18n.ts b/src/utils/i18n.ts index 758c847..ab77af0 100644 --- a/src/utils/i18n.ts +++ b/src/utils/i18n.ts @@ -1,12 +1,16 @@ // translate router.meta.title, be used in breadcrumb sidebar tagsview import i18n from '@/lang/index'; -export const translateRouteTitleI18n = (title: string): string => { - // 鍒ゆ柇鏄惁瀛樺湪鍥介檯鍖栭厤缃紝濡傛灉娌℃湁鍘熺敓杩斿洖 - const hasKey = i18n.global.te('route.' + title); - if (hasKey) { - const translatedTitle = i18n.global.t('route.' + title); - return translatedTitle; - } - return title; +/** + * 鑾峰彇鍥介檯鍖栬矾鐢憋紝濡傛灉涓嶅瓨鍦ㄥ垯鍘熺敓杩斿洖 + * @param title 璺敱鍚嶇О + * @returns {string} + */ +export const translateRouteTitle = (title: string): string => { + const hasKey = i18n.global.te('route.' + title); + if (hasKey) { + const translatedTitle = i18n.global.t('route.' + title); + return translatedTitle; + } + return title; }; -- Gitblit v1.9.3