diff --git a/ui/src/api/log.ts b/ui/src/api/log.ts index 6ec65fea8..0762a0385 100644 --- a/ui/src/api/log.ts +++ b/ui/src/api/log.ts @@ -30,6 +30,19 @@ const getChatLog: ( ) } -export default { - getChatLog +/** + * 删除日志 + * @param 参数 applicaiton_id, chat_id, + */ +const delChatLog: ( + applicaiton_id: string, + chat_id: string, + loading?: Ref +) => Promise> = (applicaiton_id, chat_id, loading) => { + return del(`${prefix}/${applicaiton_id}/document/${chat_id}`, {}, loading) +} + +export default { + getChatLog, + delChatLog } diff --git a/ui/src/views/application/AppOverview.vue b/ui/src/views/application/AppOverview.vue index 336219cd1..a11b607fc 100644 --- a/ui/src/views/application/AppOverview.vue +++ b/ui/src/views/application/AppOverview.vue @@ -13,14 +13,10 @@ :size="32" />

{{ detail?.name }}

-
- 运行中 - 已停用 -
- - + +
公开访问链接 嵌入第三方
- +
API访问凭据 -
- 运行中 - 已停用 -
@@ -173,20 +154,6 @@ function deleteApplication(row: any) { .catch(() => {}) } -// function changeState(bool: Boolean, row: any) { -// const obj = { -// is_active: bool -// } -// loading.value = true -// applicationApi -// .asyncPutParagraph(id, documentId, row.id, obj) -// .then((res) => { -// loading.value = false -// }) -// .catch(() => { -// loading.value = false -// }) -// } function getList() { applicationApi diff --git a/ui/src/views/log/index.vue b/ui/src/views/log/index.vue index 1caf52ea9..415603aa0 100644 --- a/ui/src/views/log/index.vue +++ b/ui/src/views/log/index.vue @@ -31,12 +31,17 @@ @@ -49,7 +54,7 @@