Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apps/daas/src/i18n/langs/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ export default {
application_false: 'No',
application_create: 'Create Client',
application_edit: 'Edit client',
application_client_id_placeholder: 'Can be left empty, system will auto-generate',
//api 监控
api_monitor_total_totalCount: 'Total number of APIs',
api_monitor_total_warningApiCount: 'Total API Access',
api_monitor_total_warningVisitCount: 'Total API Access Warning',
Expand Down Expand Up @@ -466,10 +468,10 @@ export default {
setting_Default_Limit: 'The number of rows returned by the default query',
setting_Max_Limit: 'Maximum number of rows returned by the query',
setting_Desensitize_API_request_parameters:

'Desensitize API request parameters',
'setting_Timeout_period_for_API_access_to_the_database_(millisecond)':

'The timeout period for API access to the database (millisecond)',
setting_Send_batch_size: 'Number of packed data',
setting_hint_Send_batch_size: 'Number of packed data',
Expand Down
1 change: 1 addition & 0 deletions apps/daas/src/i18n/langs/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export default {
application_false: '否',
application_create: '创建客户端',
application_edit: '编辑客户端',
application_client_id_placeholder: '可留空,系统将自动生成',
//api 监控
api_monitor_total_totalCount: 'API总数',
api_monitor_total_warningApiCount: 'API访问总数',
Expand Down
1 change: 1 addition & 0 deletions apps/daas/src/i18n/langs/zh-TW.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export default {
application_false: '否',
application_create: '創建客戶端',
application_edit: '編輯客戶端',
application_client_id_placeholder: '可留空,系統將自動生成',
//api 监控
api_monitor_total_totalCount: 'API總數',
api_monitor_total_warningApiCount: 'API訪問總數',
Expand Down
10 changes: 10 additions & 0 deletions apps/daas/src/views/api-page/Applications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
roles: [],
createForm: {
clientName: '',
clientId: '',
grantTypes: [],
clientSecret: '',
scopes: [],
Expand Down Expand Up @@ -63,6 +64,7 @@ export default {
this.createDialogVisible = true
this.createForm = {
clientName: '',
clientId: '',
grantTypes: ['implicit', 'client_credentials'],
clientSecret: '',
scopes: [],
Expand Down Expand Up @@ -112,6 +114,11 @@ export default {
params.redirectUris = params.redirectUrisStr?.split(',') || []
delete params.redirectUrisStr

// 如果clientId为空,则不传递该字段
if (!params.clientId || params.clientId.trim() === '') {
delete params['clientId']
}

this.$refs.form.validate((valid) => {
if (valid) {
method(params).then(() => {
Expand Down Expand Up @@ -335,6 +342,9 @@ export default {
>
<ElInput v-model="createForm.clientName" />
</ElFormItem>
<ElFormItem :label="$t('application_header_id')" prop="clientId">
<ElInput v-model="createForm.clientId" size="mini" :placeholder="$t('application_client_id_placeholder')"></ElInput>
</ElFormItem>
<ElFormItem
:label="$t('application_header_grant_type')"
required
Expand Down
Loading