Skip to content

Commit

Permalink
fix(接口测试): 修复场景批量创建性能测试权限
Browse files Browse the repository at this point in the history
--bug=1027260 --user=王孝刚 【接口测试】接口自动化批量创建性能测试权限禁用,建议入口置灰
https://www.tapd.cn/55049933/s/1384808
  • Loading branch information
wxg0103 authored and fit2-zhao committed Jun 25, 2023
1 parent 07db389 commit f4b5b40
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -552,9 +552,6 @@ export default {
name: this.$t('api_test.create_performance_test_batch'),
handleClick: this.batchCreatePerformance,
permissions: ['PROJECT_API_SCENARIO:READ+CREATE_PERFORMANCE_BATCH'],
isDisable() {
return !hasPermission('PROJECT_PERFORMANCE_TEST:READ+CREATE')
}
},
],
typeArr: [
Expand Down Expand Up @@ -1321,6 +1318,10 @@ export default {
this.$emit('selection', selection);
},
batchCreatePerformance() {
if (!hasPermission('PROJECT_PERFORMANCE_TEST:READ+CREATE')) {
this.$warning(this.$t('api_test.create_performance_test_tips'));
return;
}
this.$alert(this.$t('api_test.definition.request.batch_to_performance_confirm') + "", '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
Expand Down

0 comments on commit f4b5b40

Please sign in to comment.