diff --git a/ui/src/api/application.ts b/ui/src/api/application.ts index 99b6ed742..93599769f 100644 --- a/ui/src/api/application.ts +++ b/ui/src/api/application.ts @@ -221,6 +221,19 @@ const putChatVote: ( ) } +/** + * 对话日志 + * @param 参数 + * application_id, history_day +} + */ +const getChatLog: ( + applicaiton_id: String, + history_day: number, + loading?: Ref +) => Promise> = (applicaiton_id, history_day, loading) => { + return get(`${prefix}/${applicaiton_id}/chat`, { history_day }, loading) +} export default { getAllAppilcation, getApplication, @@ -236,5 +249,6 @@ export default { getAccessToken, postAppAuthentication, getProfile, - putChatVote + putChatVote, + getChatLog } diff --git a/ui/src/components/ai-dialog/index.vue b/ui/src/components/ai-dialog/index.vue index accbcef74..df718fdb0 100644 --- a/ui/src/components/ai-dialog/index.vue +++ b/ui/src/components/ai-dialog/index.vue @@ -103,7 +103,6 @@ placeholder="请输入" :autosize="{ minRows: 1, maxRows: 8 }" @keydown.enter="sendChatHandle($event)" - :disabled="loading" />
{ - inputValue.value = '' const row = chatList.value.find((item) => item.id === id) if (row) { diff --git a/ui/src/components/app-table/index.vue b/ui/src/components/app-table/index.vue index 6a4506ce5..5d9a137cf 100644 --- a/ui/src/components/app-table/index.vue +++ b/ui/src/components/app-table/index.vue @@ -1,6 +1,6 @@