Skip to content

Commit

Permalink
fix: 修复网关文档“是否需申请权限”文本
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 17309
  • Loading branch information
Carlmac committed Sep 4, 2024
1 parent e8d2f53 commit befdff2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
>
{{ t('权限申请') }}
</span>
{{ (api.resource_perm_required || api.component_permission_required) ? t('') : t('') }}
{{ (api.allow_apply_permission || api.component_permission_required) ? t('') : t('') }}
</span>
</section>
<section class="basic-cell">
Expand Down
1 change: 1 addition & 0 deletions src/dashboard-front/src/views/apiDocs/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ interface IResource {
verified_user_required: boolean;
verified_app_required: boolean;
resource_perm_required: boolean;
allow_apply_permission: boolean;
labels: string[];
}

Expand Down
2 changes: 1 addition & 1 deletion src/dashboard-front/src/views/apigwDocs/components/doc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<i class="ml5 bk-icon icon-question-circle" v-bk-tooltips="$t('应用访问该网关API前,是否需要在开发者中心申请该网关API权限')"></i>
</div>
<div class="v">{{curComponent.resource_perm_required ? $t('是') : $t('否')}}</div>
<div class="v">{{curComponent.allow_apply_permission ? $t('是') : $t('否')}}</div>
</div>
</div>
<!-- eslint-disable-next-line vue/no-v-html -->
Expand Down

0 comments on commit befdff2

Please sign in to comment.