feat: attachment_support

This commit is contained in:
MaoMengww
2026-04-10 12:49:20 +08:00
parent 69785ad0a3
commit aaee5f044a
26 changed files with 1029 additions and 19 deletions
+4 -1
View File
@@ -38,6 +38,7 @@ export const useMenuStore = defineStore('menuStore', () => {
const firstMentionedItems = ref<any[]>([])
const firstModelId = ref('')
const firstImageFiles = ref<any[]>([])
const firstAttachmentFiles = ref<any[]>([])
const prefillQuery = ref('')
const applyMenuTranslations = () => {
@@ -99,11 +100,12 @@ export const useMenuStore = defineStore('menuStore', () => {
isFirstSession.value = payload
}
const changeFirstQuery = (payload: string, mentionedItems: any[] = [], modelId: string = '', imageFiles: any[] = []) => {
const changeFirstQuery = (payload: string, mentionedItems: any[] = [], modelId: string = '', imageFiles: any[] = [], attachmentFiles: any[] = []) => {
firstQuery.value = payload
firstMentionedItems.value = mentionedItems
firstModelId.value = modelId
firstImageFiles.value = imageFiles
firstAttachmentFiles.value = attachmentFiles
}
const setPrefillQuery = (q: string) => {
@@ -123,6 +125,7 @@ export const useMenuStore = defineStore('menuStore', () => {
firstMentionedItems,
firstModelId,
firstImageFiles,
firstAttachmentFiles,
prefillQuery,
clearMenuArr,
updatemenuArr,