Skip to content

Commit f3777f6

Browse files
committed
【代码优化】AI:将对话、聊天挪到 index 目录下,更模块化
1 parent 4acd379 commit f3777f6

File tree

19 files changed

+27
-12
lines changed

19 files changed

+27
-12
lines changed

src/views/ai/chat/Conversation.vue renamed to src/views/ai/chat/index/Conversation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<script setup lang="ts">
9999
import { ChatConversationApi, ChatConversationVO } from '@/api/ai/chat/conversation'
100100
import { ref } from 'vue'
101-
import Role from '@/views/ai/chat/role/index.vue'
101+
import Role from './role/index.vue'
102102
import { Bottom, Top } from '@element-plus/icons-vue'
103103
import roleAvatarDefaultImg from '@/assets/ai/gpt.svg'
104104
File renamed without changes.

src/views/ai/chat/index.vue renamed to src/views/ai/chat/index/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ import MessageLoading from './MessageLoading.vue'
111111
import MessageNewChat from './MessageNewChat.vue'
112112
import { ChatMessageApi, ChatMessageVO } from '@/api/ai/chat/message'
113113
import { ChatConversationApi, ChatConversationVO } from '@/api/ai/chat/conversation'
114-
import ChatConversationUpdateForm from '@/views/ai/chat/components/ChatConversationUpdateForm.vue'
114+
import ChatConversationUpdateForm from './components/ChatConversationUpdateForm.vue'
115115
import { Download, Top } from '@element-plus/icons-vue'
116116
117117
const route = useRoute() // 路由

0 commit comments

Comments
 (0)