diff --git a/src/layouts/AILayout/ViewHistoryAside/ViewHistoryAsideNew.vue b/src/layouts/AILayout/ViewHistoryAside/ViewHistoryAsideNew.vue new file mode 100644 index 0000000..d8d6c2f --- /dev/null +++ b/src/layouts/AILayout/ViewHistoryAside/ViewHistoryAsideNew.vue @@ -0,0 +1,324 @@ + + + + + + + + + 新对话 + Ctrl+N + + + + + + + + 帮我写 + + + + AI 创作 + + + + 应用生成 + + + + 云盘 + + + 更多 + + + + + + 历史对话 + + + + + + + + {{ item.question }} + + + + + + + + + + + + + + + + + diff --git a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAsideNew.vue b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAsideNew.vue new file mode 100644 index 0000000..2e05e43 --- /dev/null +++ b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAsideNew.vue @@ -0,0 +1,596 @@ + + + + + + + 新对话 + + + + + + + + + + {{ menu.title }} + + + + + + + + + + + 历史对话 + + + + + + + + + + + + + + + + {{ item.title || '新对话' }} + + + + + + + + + + + + + + {{ item.isPinned ? '取消置顶' : '置顶' }} + + + {{ item.is_collected ? '取消收藏' : '收藏' }} + + 重命名 + 删除 + + + + + + + + + + 暂无历史对话 + + + + + + + + 保存条数 + + 10 + 20 + 30 + 不限 + + + + + 批量管理 + + + + + + + + + + diff --git a/src/views/Jyh/AI/Home/index.vue b/src/views/Jyh/AI/Home/index.vue index fd5463e..68a38ab 100644 --- a/src/views/Jyh/AI/Home/index.vue +++ b/src/views/Jyh/AI/Home/index.vue @@ -139,6 +139,7 @@ + @@ -153,6 +154,7 @@ import OssDetail from './components/OssDetail.vue'; import Other from './components/Other.vue'; import AIList from './components/AIList.vue'; import ViewHistoryAside from './components/ViewHistoryAside/ViewHistoryAside.vue'; +import ViewHistoryAsideNew from './components/ViewHistoryAside/ViewHistoryAsideNew.vue'; import axios from 'axios'; import { useDiscussGetUserInfo } from '@/api/discussion/hook'; import { Message } from 'vue-devui/message'; @@ -196,7 +198,7 @@ const messages = ref([]); const followupQuestions = ref([]); // 控制 ViewHistoryAside 组件的显示状态 -const isHistoryVisible = ref(false); +const isHistoryVisible = ref(true); // 切换 ViewHistoryAside 组件的显示与隐藏