allow user to upload attachment for mobile chat page

This commit is contained in:
RockYang
2025-09-08 08:43:32 +08:00
parent 18961d3c26
commit 8b2cf90aab
10 changed files with 357 additions and 114 deletions

View File

@@ -384,7 +384,7 @@ import FileSelect from '@/components/FileSelect.vue'
import Welcome from '@/components/Welcome.vue'
import { checkSession, getClientId, getSystemInfo } from '@/store/cache'
import { useSharedStore } from '@/store/sharedata'
import { closeLoading, showLoading, showMessageError } from '@/utils/dialog'
import { closeLoading, showLoading, showMessageError, showMessageInfo } from '@/utils/dialog'
import { httpGet, httpPost } from '@/utils/http'
import { isMobile, randString, removeArrayItem, UUID } from '@/utils/libs'
import {
@@ -1162,7 +1162,7 @@ const stopGenerate = function () {
isGenerating.value = false
httpGet('/api/chat/stop?session_id=' + getClientId())
.then(() => {
console.log('会话已中断')
showMessageInfo('会话已中断')
})
.catch((e) => {
showMessageError('中断对话失败:' + e.message)