Skip to content

Commit

Permalink
perf: 【应用】概览访问凭证优化
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Sep 19, 2024
1 parent 7cb3557 commit 780a44f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
31 changes: 25 additions & 6 deletions ui/src/views/application-overview/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,27 @@
</el-text>
</div>
<div class="mt-4 mb-16 url-height">
<a target="_blank" :href="apiUrl" class="vertical-middle lighter break-all">
{{ apiUrl }}
</a>
<div>
<el-text>API 文档:</el-text
><el-button
type="primary"
link
@click="toUrl(apiUrl)"
class="vertical-middle lighter break-all"
>
{{ apiUrl }}
</el-button>
</div>
<div>
<el-text>Base URL:</el-text
><a target="_blank" :href="apiUrl" class="vertical-middle lighter break-all">
{{ baseUrl + id }}
</a>
<el-button type="primary" text @click="copyClick(apiUrl)">
<AppIcon iconName="app-copy"></AppIcon>
</el-button>
<el-button type="primary" text @click="copyClick(baseUrl + id)">
<AppIcon iconName="app-copy"></AppIcon>
</el-button>
</div>
</div>
<div>
<el-button @click="openAPIKeyDialog">{{
Expand Down Expand Up @@ -172,6 +186,8 @@ const {
const apiUrl = window.location.origin + '/doc/chat/'
const baseUrl = window.location.origin + '/api/application/'
const DisplaySettingDialogRef = ref()
const EditAvatarDialogRef = ref()
const LimitDialogRef = ref()
Expand Down Expand Up @@ -225,6 +241,9 @@ const statisticsData = ref([])
const showEditIcon = ref(false)
function toUrl(url: string) {
window.open(url, '_blank')
}
function openDisplaySettingDialog() {
DisplaySettingDialogRef.value.open(accessToken.value)
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/workflow/nodes/reranker-node/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
@submit="getModel"
@change="openCreateModel($event)"
></CreateModelDialog>
<SelectProviderDialog ref="selectProviderRef" @change="openCreateModel($event)" />
</NodeContainer>
</template>
<script setup lang="ts">
Expand Down

0 comments on commit 780a44f

Please sign in to comment.