diff --git a/.env b/.env index a93cbc0..5a29a43 100644 --- a/.env +++ b/.env @@ -1,7 +1,7 @@ # Glob API URL VITE_GLOB_API_URL=/api -VITE_APP_API_BASE_URL=https://erpapi.fontree.cn +VITE_APP_API_BASE_URL=http://114.218.158.24:9020 https://erpapi.fontree.cn#正式 http://114.218.158.24:9020#测试 # Whether long replies are supported, which may result in higher API fees diff --git a/src/views/chat/components/Message/Text.vue b/src/views/chat/components/Message/Text.vue index c8a8d1c..2f840a3 100644 --- a/src/views/chat/components/Message/Text.vue +++ b/src/views/chat/components/Message/Text.vue @@ -43,6 +43,7 @@ const wrapClass = computed(() => { return [ 'text-wrap', 'min-w-[20px]', + 'min-h-[31px]', 'rounded-md', isMobile.value ? 'p-2' : 'px-3 py-2', props.inversion ? 'bg-[#dfd7f3]' : 'bg-[#f4f6f8]', diff --git a/src/views/chat/components/Message/index.vue b/src/views/chat/components/Message/index.vue index 85adf34..270dbbb 100644 --- a/src/views/chat/components/Message/index.vue +++ b/src/views/chat/components/Message/index.vue @@ -45,12 +45,7 @@ const options = computed(() => { label: t('chat.copy'), key: 'copyText', icon: iconRender({ icon: 'ri:file-copy-2-line' }), - }/* , - { - label: t('common.delete'), - key: 'delete', - icon: iconRender({ icon: 'ri:delete-bin-line' }), - }, */ + } ] if (!props.inversion) { @@ -76,12 +71,6 @@ function handleSelect(key: 'copyText' | 'delete' | 'toggleRenderType') { emit('delete') } } - -/* function handleRegenerate() { - messageRef.value?.scrollIntoView() - emit('regenerate') -} */ - async function handleCopy() { try { await copyToClip(props.text || '') diff --git a/src/views/chat/hooks/useScroll.ts b/src/views/chat/hooks/useScroll.ts index c474021..9b6be4c 100644 --- a/src/views/chat/hooks/useScroll.ts +++ b/src/views/chat/hooks/useScroll.ts @@ -12,7 +12,6 @@ interface ScrollReturn { export function useScroll(): ScrollReturn { const scrollRef = ref(null) - const scrollToBottom = async () => { await nextTick() if (scrollRef.value) diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index ab3c81f..f644841 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -1,36 +1,55 @@ - +