feat: add handleQuickAction method
This commit is contained in:
parent
c7a0c84d69
commit
7a86325bd0
@ -1018,6 +1018,12 @@ const handleQuickQuestion = (question: string) => {
|
|||||||
handleSendMessage()
|
handleSendMessage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 处理快捷按钮点击
|
||||||
|
const handleQuickAction = (action: QuickAction) => {
|
||||||
|
inputMessage.value = action.message
|
||||||
|
handleSendMessage()
|
||||||
|
}
|
||||||
|
|
||||||
const handleConfirmation = (message: Message, confirmation: string) => {
|
const handleConfirmation = (message: Message, confirmation: string) => {
|
||||||
// 如果已经选择过,不再处理
|
// 如果已经选择过,不再处理
|
||||||
if (message.selectedConfirmation !== undefined) {
|
if (message.selectedConfirmation !== undefined) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user