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/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 @@