|
@@ -2,7 +2,8 @@
|
|
|
import { ref, unref, computed, onMounted, onUnmounted } from 'vue';
|
|
|
import { useMessage } from 'naive-ui';
|
|
|
import { BaseButton, RecodeCardItem, TheSubMenu, TheChatView, ChatWelcome, SvgIcon } from '@/components';
|
|
|
-import { ChatAsk, ChatAnswer, ChatInputCopy } from '@/components/Chat';
|
|
|
+import { ChatAsk, ChatAnswer, ChatAgentInput } from '@/components/Chat';
|
|
|
+import { getFormatYesterDay } from '@/utils/format';
|
|
|
import { chatApi } from '@/api/chat';
|
|
|
import { helperApi } from '@/api/helper';
|
|
|
|
|
@@ -182,7 +183,7 @@ const handleback = async () => {
|
|
|
|
|
|
onMounted(async () => {
|
|
|
const { data } = await helperApi.getHelperList();
|
|
|
- helperList.value = data;
|
|
|
+ helperList.value = getFormatYesterDay(data);
|
|
|
})
|
|
|
|
|
|
onUnmounted(() => {
|
|
@@ -244,14 +245,14 @@ onUnmounted(() => {
|
|
|
</div>
|
|
|
|
|
|
<template #footer>
|
|
|
- <ChatInputCopy
|
|
|
+ <ChatAgentInput
|
|
|
:active-item="activeItem"
|
|
|
ref="inputRef"
|
|
|
v-model:loading="isLoading"
|
|
|
v-model:switch="switchActive"
|
|
|
@on-click="handleSubmit"
|
|
|
@on-enter="handleSubmit"
|
|
|
- ></ChatInputCopy>
|
|
|
+ ></ChatAgentInput>
|
|
|
</template>
|
|
|
</TheChatView>
|
|
|
</section>
|