Phoenix 8 months ago
parent 19fb7e2bac
commit b7f46d1c22

@ -1,7 +1,7 @@
# Glob API URL # Glob API URL
VITE_GLOB_API_URL=/api 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#正式 https://erpapi.fontree.cn#正式
http://114.218.158.24:9020#测试 http://114.218.158.24:9020#测试
# Whether long replies are supported, which may result in higher API fees # Whether long replies are supported, which may result in higher API fees

@ -43,6 +43,7 @@ const wrapClass = computed(() => {
return [ return [
'text-wrap', 'text-wrap',
'min-w-[20px]', 'min-w-[20px]',
'min-h-[31px]',
'rounded-md', 'rounded-md',
isMobile.value ? 'p-2' : 'px-3 py-2', isMobile.value ? 'p-2' : 'px-3 py-2',
props.inversion ? 'bg-[#dfd7f3]' : 'bg-[#f4f6f8]', props.inversion ? 'bg-[#dfd7f3]' : 'bg-[#f4f6f8]',

@ -45,12 +45,7 @@ const options = computed(() => {
label: t('chat.copy'), label: t('chat.copy'),
key: 'copyText', key: 'copyText',
icon: iconRender({ icon: 'ri:file-copy-2-line' }), icon: iconRender({ icon: 'ri:file-copy-2-line' }),
}/* , }
{
label: t('common.delete'),
key: 'delete',
icon: iconRender({ icon: 'ri:delete-bin-line' }),
}, */
] ]
if (!props.inversion) { if (!props.inversion) {
@ -76,12 +71,6 @@ function handleSelect(key: 'copyText' | 'delete' | 'toggleRenderType') {
emit('delete') emit('delete')
} }
} }
/* function handleRegenerate() {
messageRef.value?.scrollIntoView()
emit('regenerate')
} */
async function handleCopy() { async function handleCopy() {
try { try {
await copyToClip(props.text || '') await copyToClip(props.text || '')

@ -12,7 +12,6 @@ interface ScrollReturn {
export function useScroll(): ScrollReturn { export function useScroll(): ScrollReturn {
const scrollRef = ref<ScrollElement>(null) const scrollRef = ref<ScrollElement>(null)
const scrollToBottom = async () => { const scrollToBottom = async () => {
await nextTick() await nextTick()
if (scrollRef.value) if (scrollRef.value)

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save