diff --git a/src/modules/openapi/ApplyApiKeyDialog.vue b/src/modules/openapi/ApplyApiKeyDialog.vue index 8b24c8c..eef4fa1 100644 --- a/src/modules/openapi/ApplyApiKeyDialog.vue +++ b/src/modules/openapi/ApplyApiKeyDialog.vue @@ -129,7 +129,6 @@ async function submit() { const res = await httpPost('/sys/openapi/app/apply', payload) result.value = Array.isArray(res) ? res : [] ElMessage.success(`已为 ${result.value.length} 个客户生成 APIKey`) - emit('refresh') } catch (e: any) { ElMessage.error(e?.msg || e?.message || '申请失败') } finally { @@ -137,7 +136,7 @@ async function submit() { } } -function onClose() { updateVisible(false) } +function onClose() { updateVisible(false); if (result.value) emit("refresh") } async function copySecret(text: string) { try { @@ -232,12 +231,13 @@ function notifyContact() { :row-style="{ height: '36px' }" :cell-style="{ padding: '4px 8px', fontSize: '12.5px' }" :header-cell-style="{ padding: '6px 8px', fontSize: '12px', height: '32px', background: 'var(--surface-2)' }" + class="rr-apply-table" @selection-change="onSelectionChange" > - - - - + + + + @@ -330,8 +330,8 @@ function notifyContact() { 请立即复制 connectCode 和 appSecret!关弹窗后无法再次查看

已为 {{ result.length }} 个客户生成 APIKey:

- - + +