From 2adece80e363009c13753e9edad4cff50f582ed2 Mon Sep 17 00:00:00 2001 From: ulleo Date: Wed, 30 Oct 2024 16:36:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/HeaderSystem.vue | 23 +++++++++++-------- core/core-frontend/src/locales/en.ts | 2 +- core/core-frontend/src/locales/tw.ts | 2 +- core/core-frontend/src/locales/zh-CN.ts | 2 +- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/core/core-frontend/src/layout/components/HeaderSystem.vue b/core/core-frontend/src/layout/components/HeaderSystem.vue index 9d06d47c8d..ccbf8394e1 100644 --- a/core/core-frontend/src/layout/components/HeaderSystem.vue +++ b/core/core-frontend/src/layout/components/HeaderSystem.vue @@ -5,13 +5,18 @@ import { computed } from 'vue' import { ElHeader } from 'element-plus-secondary' import { useRouter } from 'vue-router' import AccountOperator from '@/layout/components/AccountOperator.vue' -import { propTypes } from '@/utils/propTypes' import { useAppearanceStoreWithOut } from '@/store/modules/appearance' +import { useI18n } from '@/hooks/web/useI18n' const appearanceStore = useAppearanceStoreWithOut() const { push } = useRouter() -const props = defineProps({ - title: propTypes.string.def('系统设置') -}) +const { t } = useI18n() + +const props = withDefaults( + defineProps<{ + title: string + }>(), + {} +) const backToMain = () => { push('/workbranch/index') } @@ -25,17 +30,17 @@ const navigate = computed(() => appearanceStore.getNavigate) :class="{ 'header-light': navigateBg && navigateBg === 'light' }" > - + - {{ props.title || '系统设置' }} + {{ title || t('commons.system_setting') }}
- 返回工作台 + {{ t('work_branch.back_to_work_branch') }} diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index c4de4bd427..6792a8bd6f 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -359,6 +359,7 @@ export default { to_delete_: 'Are you sure to delete [100]?' }, work_branch: { + back_to_work_branch: 'Back to work branch', recommended_dashboard: 'Recommended dashboard', template_market_official: 'If you have not obtained the template download link, please contact the template market official', @@ -1001,7 +1002,6 @@ export default { task_finish_in_suffix: '', open_sub_task: 'Open Assigned Tasks' }, - on_the_left: 'Please select a form on the left', search_by_commit_name: 'Search by operator name' } } diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index ca42ed742a..3e38a8c2de 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -125,6 +125,7 @@ export default { exists_name_hint: '當前名稱已在模版管理中存在,請修改' }, work_branch: { + back_to_work_branch: '返回工作台', recommended_dashboard: '推薦儀表板', template_market_official: '未獲取模板下載鏈接請聯系模板市場官方', create_quickly: '快速創建', @@ -3262,7 +3263,6 @@ export default { task_finish_in_suffix: '內完成填報', open_sub_task: '查看已下發任務' }, - on_the_left: '請在左側選擇表單', search_by_commit_name: '根據操作人名稱搜索' }, threshold: { diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 0b03f29494..00da1efd53 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -125,6 +125,7 @@ export default { exists_name_hint: '当前名称已在模版管理中存在,请修改' }, work_branch: { + back_to_work_branch: '返回工作台', recommended_dashboard: '推荐仪表板', template_market_official: '未获取模板下载链接请联系模板市场官方', create_quickly: '快速创建', @@ -3320,7 +3321,6 @@ export default { task_finish_in_suffix: '内完成填报', open_sub_task: '查看已下发任务' }, - on_the_left: '请在左侧选择表单', search_by_commit_name: '根据操作人名称搜索' }, threshold: {