From 2488c358fd423f5fcd316a6925d84c6a0e324455 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Sun, 8 Sep 2024 16:51:18 +0800 Subject: [PATCH] Refactor import paths in Conversation.vue and MessageList.vue to use absolute paths for consistency. --- web/src/views/chat/components/Conversation.vue | 18 +++++++++--------- web/src/views/chat/components/MessageList.vue | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/web/src/views/chat/components/Conversation.vue b/web/src/views/chat/components/Conversation.vue index c1584060..2066b936 100644 --- a/web/src/views/chat/components/Conversation.vue +++ b/web/src/views/chat/components/Conversation.vue @@ -7,11 +7,11 @@ import { NAutoComplete, NButton, NInput, NModal, useDialog, useMessage } from 'n import { storeToRefs } from 'pinia' import html2canvas from 'html2canvas' import { type OnSelect } from 'naive-ui/es/auto-complete/src/interface' -import { useScroll } from './hooks/useScroll' -import { useChat } from './hooks/useChat' -import { useCopyCode } from './hooks/useCopyCode' -import HeaderComponent from './components/Header/index.vue' -import SessionConfig from './components/Session/SessionConfig.vue' +import { useScroll } from '@/views/chat/hooks/useScroll' +import { useChat } from '@/views/chat/hooks/useChat' +import { useCopyCode } from '@/views/chat/hooks/useCopyCode' +import HeaderComponent from '@/views/chat/components/Header/index.vue' +import SessionConfig from '@/views/chat/components/Session/SessionConfig.vue' import { createChatBot, createChatSnapshot, fetchChatStream } from '@/api' import { HoverButton, SvgIcon } from '@/components/common' import { useBasicLayout } from '@/hooks/useBasicLayout' @@ -19,10 +19,10 @@ import { useChatStore, usePromptStore } from '@/store' import { t } from '@/locales' import { genTempDownloadLink } from '@/utils/download' import { nowISO } from '@/utils/date' -import UploadModal from './components/UploadModal.vue' -import UploaderReadOnly from './components/UploaderReadOnly.vue' -import ModelSelector from './components/ModelSelector.vue' -import MessageList from './components/MessageList.vue' +import UploadModal from '@/views/chat/components/UploadModal.vue' +import UploaderReadOnly from '@/views/chat/components/UploaderReadOnly.vue' +import ModelSelector from '@/views/chat/components/ModelSelector.vue' +import MessageList from '@/views/chat/components/MessageList.vue' import PromptGallery from '@/views/chat/components/PromptGallery/index.vue' import { getDataFromResponseText } from '@/utils/string' let controller = new AbortController() diff --git a/web/src/views/chat/components/MessageList.vue b/web/src/views/chat/components/MessageList.vue index 1480b18d..61634b58 100644 --- a/web/src/views/chat/components/MessageList.vue +++ b/web/src/views/chat/components/MessageList.vue @@ -9,7 +9,7 @@ import Message from './Message/index.vue'; import { computed, ref } from 'vue'; import { useChatStore } from '@/store'; -import { useChat } from '../hooks/useChat' +import { useChat } from '@/views/chat/hooks/useChat' import { updateChatData } from '@/api' import { useDialog } from 'naive-ui'