Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
水玉婷
ai-wechat
Commits
f4796772
Commit
f4796772
authored
Apr 13, 2026
by
水玉婷
Browse files
feat:附件的时候,必须要有问题内容
parent
796092f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/views/components/AiChat.vue
View file @
f4796772
...
...
@@ -462,7 +462,7 @@ const validateMessageParams = (type: MessageType, params: MessageParams): boolea
case
'
audio
'
:
return
!!
audioUrl
;
case
'
attachment
'
:
return
attachments
.
value
.
length
>
0
;
return
attachments
.
value
.
length
>
0
&&
!!
messageContent
default
:
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment