Commit 3b7f8837 authored by nick zheng's avatar nick zheng

chore: 应用API调用UI调整

parent 9217d063
......@@ -133,6 +133,7 @@ common_module:
not_generated: 'Not generated'
export_successfully: 'Export successfully'
export_failed: 'Export failed'
copy_link: 'Copy link'
dialogue_module:
continue_question_message: 'You can keep asking questions'
......
......@@ -132,6 +132,7 @@ common_module:
not_generated: '未生成'
export_successfully: '导出成功'
export_failed: '导出失败'
copy_link: '复制链接'
dialogue_module:
continue_question_message: '你可以继续提问'
......
......@@ -132,6 +132,7 @@ common_module:
not_generated: '未生成'
export_successfully: '導出成功'
export_failed: '導出失敗'
copy_link: '複製鏈接'
dialogue_module:
continue_question_message: '你可以繼續提問'
......
......@@ -181,7 +181,11 @@ async function handleExportAPIChannelPointUsageData() {
<p class="font-600">App Key</p>
<span class="text-theme-color cursor-pointer hover:opacity-80" @click="handleGetAPIProfile">
{{
t('personal_space_module.agent_module.agent_setting_module.agent_publish_module.click_to_generate')
apiProfileInfo.apiKey
? t('common_module.regenerate')
: t(
'personal_space_module.agent_module.agent_setting_module.agent_publish_module.click_to_generate',
)
}}
</span>
</div>
......@@ -237,15 +241,12 @@ async function handleExportAPIChannelPointUsageData() {
<div class="rounded-theme flex h-9 w-full cursor-default items-center justify-between border px-3">
<span>{{ personalAppConfigStore.baseInfo.agentId }}</span>
<n-popover trigger="hover">
<template #trigger>
<i
class="iconfont icon-copy text-gray-font-color hover:text-theme-color cursor-pointer leading-4"
@click="handleCopyText(personalAppConfigStore.baseInfo.agentId)"
/>
</template>
<span>{{ t('common_module.data_table_module.copy') }}</span>
</n-popover>
<span
class="text-theme-color border-inactive-border-color cursor-pointer border-l pl-3 hover:opacity-80"
@click="handleCopyText(personalAppConfigStore.baseInfo.agentId)"
>
{{ t('common_module.copy_link') }}
</span>
</div>
</div>
......
......@@ -132,6 +132,7 @@ declare namespace I18n {
not_generated: string
export_successfully: string
export_failed: string
copy_link: string
dialogue_module: {
continue_question_message: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment