From 1931739abb206210b28e528a37a96af318252f29 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 23 Nov 2022 14:09:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E6=9F=A5=E7=9C=8B=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E7=9A=84=E6=9D=83=E9=99=90=E7=82=B9=E5=87=BB=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=9C=BA=E6=99=AF=E5=90=8E=E9=A1=B5=E9=9D=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1019677 --user=刘瑞斌 【性能测试】只有性能测试查看权限,同步场景按钮可以点,点了会报错 https://www.tapd.cn/55049933/s/1302474 --- .../frontend/src/business/test/EditPerformanceTest.vue | 8 ++++---- performance-test/frontend/src/i18n/lang/en-US.js | 2 +- performance-test/frontend/src/i18n/lang/zh-CN.js | 2 +- performance-test/frontend/src/i18n/lang/zh-TW.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/performance-test/frontend/src/business/test/EditPerformanceTest.vue b/performance-test/frontend/src/business/test/EditPerformanceTest.vue index 30d94e1e0d..b0fc3ba77d 100644 --- a/performance-test/frontend/src/business/test/EditPerformanceTest.vue +++ b/performance-test/frontend/src/business/test/EditPerformanceTest.vue @@ -48,11 +48,10 @@ - { return getCurrentUser(); }, @@ -416,7 +416,7 @@ export default { return formData; }, syncScenario() { - if (!hasPermission('PROJECT_API_SCENARIO:READ')) { + if (!hasPermission('PROJECT_API_SCENARIO:READ+CREATE')) { this.$warning(this.$t('performance_test.sync_scenario_no_permission_tips')); return; } diff --git a/performance-test/frontend/src/i18n/lang/en-US.js b/performance-test/frontend/src/i18n/lang/en-US.js index c98699a03a..a6d622e6e9 100644 --- a/performance-test/frontend/src/i18n/lang/en-US.js +++ b/performance-test/frontend/src/i18n/lang/en-US.js @@ -8,7 +8,7 @@ const message = { test_duration: '{0} hours {1} minutes {2} seconds', test_duration_tips: 'Execution Time:{0} hours {1} minutes {2} seconds', }, - sync_scenario_no_permission_tips: 'No permission to view the interface cannot perform synchronization', + sync_scenario_no_permission_tips: 'No permission to create the scenario cannot perform synchronization', } } export default { diff --git a/performance-test/frontend/src/i18n/lang/zh-CN.js b/performance-test/frontend/src/i18n/lang/zh-CN.js index 1029e88686..a1948a8e78 100644 --- a/performance-test/frontend/src/i18n/lang/zh-CN.js +++ b/performance-test/frontend/src/i18n/lang/zh-CN.js @@ -8,7 +8,7 @@ const message = { test_duration: '{0}时{1}分{2}秒', test_duration_tips: '执行时长:{0}时{1}分{2}秒', }, - sync_scenario_no_permission_tips: '没有查看接口的权限无法执行同步', + sync_scenario_no_permission_tips: '没有创建接口的权限无法执行同步', } } diff --git a/performance-test/frontend/src/i18n/lang/zh-TW.js b/performance-test/frontend/src/i18n/lang/zh-TW.js index 666689f93d..b8b0911eb0 100644 --- a/performance-test/frontend/src/i18n/lang/zh-TW.js +++ b/performance-test/frontend/src/i18n/lang/zh-TW.js @@ -8,7 +8,7 @@ const message = { test_duration: '{0}時{1}分{2}秒', test_duration_tips: '執行時長:{0}時{1}分{2}秒', }, - sync_scenario_no_permission_tips: '沒有查看接口的權限無法執行同步', + sync_scenario_no_permission_tips: '沒有创建接口的權限無法執行同步', } }