feat: 对话逻辑调整、历史对话接口联调

This commit is contained in:
rd
2025-08-22 18:28:09 +08:00
parent 0d5cb7ba38
commit 063ce3df5e
13 changed files with 221 additions and 71 deletions

View File

@ -1,16 +1,16 @@
<script lang="jsx">
import { Input } from 'ant-design-vue';
import { handleUserHome } from '@/utils/user.ts';
import { useSharedDataStore } from '@/stores/modules/share-data';
import { useChatStore } from '@/stores/modules/chat';
export default {
setup(props, { emit, expose }) {
const sharedDataStore = useSharedDataStore();
const chatStore = useChatStore();
const keyWord = ref('');
const handleSearch = () => {
sharedDataStore.setRouteParams({ keyWord: keyWord.value });
handleUserHome();
chatStore.setSearchValue(keyWord.value);
chatStore.onCreateSession();
keyWord.value = '';
};
return () => (