From 9b3aaa7326295edc48044913abcb213e3a2edb17 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 9 Sep 2024 11:48:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=80=E9=94=AE=E5=90=8C=E6=AD=A5=E5=BE=85=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=8C=89=E9=92=AE=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1045927 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001045927 --- framework/sdk-parent/frontend/src/i18n/lang/en-US.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js | 1 + .../frontend/src/business/component/ApiCaseTableList.vue | 4 ++-- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js index 0bafdb5d48..23135654c2 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/en-US.js @@ -556,6 +556,7 @@ const message = { workstation: { sync: 'Synchronize', sync_setting: 'Sync settings', + no_sync_content: 'Nothing to sync', custom_update_list_rule: 'Customize to-be-updated list rules', ignore: 'Ignore', past: 'past', diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js index bf3f7869e0..9015741bee 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-CN.js @@ -557,6 +557,7 @@ const message = { workstation: { sync: '同步', sync_setting: '同步设置', + no_sync_content: '没有需要同步的内容', custom_update_list_rule: '自定义待更新列表规则', ignore: '忽略', past: '过去', diff --git a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js index 49a50d9c7f..d9d4e43aac 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/zh-TW.js @@ -556,6 +556,7 @@ const message = { workstation: { sync: '同步', sync_setting: '同步設置', + no_sync_content: '沒有需要同步的內容', custom_update_list_rule: '自定義待更新列表規則', ignore: '忽略', past: '過去', diff --git a/workstation/frontend/src/business/component/ApiCaseTableList.vue b/workstation/frontend/src/business/component/ApiCaseTableList.vue index 5e8a8cc8f7..dffaf707cf 100644 --- a/workstation/frontend/src/business/component/ApiCaseTableList.vue +++ b/workstation/frontend/src/business/component/ApiCaseTableList.vue @@ -407,14 +407,14 @@ export default { permissions: ['PROJECT_API_DEFINITION:READ+EDIT_CASE'] }, { - tip: this.$t('workstation.sync'), + tip: this.systemDisable ? this.$t('workstation.no_sync_content') : this.$t('workstation.sync'), icon: "el-icon-refresh", exec: this.openSyncCase, isDisable: this.systemDisable, permissions: ['PROJECT_API_DEFINITION:READ+EDIT_API'] }, { - tip: this.$t('workstation.ignore'), + tip: this.systemDisable ? this.$t('workstation.no_sync_content') : this.$t('workstation.ignore'), icon: "el-icon-close", exec: this.openIgnoreCase, isDisable: this.systemDisable,