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: '沒有创建接口的權限無法執行同步',
}
}