feat: add QuickAction interface and quickActions data

This commit is contained in:
Your Name 2026-04-01 11:33:03 +08:00
parent eacdcb42a5
commit c7a0c84d69

View File

@ -239,6 +239,12 @@ interface Message {
}
}
//
interface QuickAction {
label: string //
message: string //
}
const auth = useWeAppAuthStore()
const inputMessage = ref('')
const selectedImages = ref<string[]>([]) //
@ -269,6 +275,14 @@ const currentOffset = ref(0) // 当前偏移量
const quickQuestionsData = ref<string[]>([]) //
const lastMessageContent = ref('') //
//
const quickActions: QuickAction[] = [
{ label: '我的账单', message: '请帮我查询我的账单信息' },
{ label: '我要报修', message: '我要报修' },
{ label: '工单查询', message: '请帮我查询我的工单' },
{ label: '社区服务', message: '请提供社区服务信息' }
]
//
const getQuickQuestions = async () => {
try {