完成consumer端同步
This commit is contained in:
@@ -222,6 +222,8 @@ import { ref, reactive, computed, onMounted } from 'vue'
|
||||
import { onShow } from '@dcloudio/uni-app'
|
||||
import { supabaseService, type Notification, type ChatMessage, type ChatRoom } from '@/utils/supabaseService.uts'
|
||||
|
||||
type ModalSuccessResult = { confirm: boolean; cancel: boolean }
|
||||
|
||||
// 定义消息项类型
|
||||
type MessageItem = {
|
||||
id: string,
|
||||
@@ -543,7 +545,7 @@ const startQuickService = (category: string) => {
|
||||
const startNewChat = () => {
|
||||
uni.showActionSheet({
|
||||
itemList: ['用药咨询', '处方咨询', '副作用咨询', '药品配送', '其他问题'],
|
||||
success: (res) => {
|
||||
success: (res: ShowActionSheetSuccess) => {
|
||||
const categories = ['用药咨询', '处方咨询', '副作用咨询', '药品配送', '其他问题']
|
||||
const category = categories[res.tapIndex]
|
||||
startQuickService(category)
|
||||
|
||||
Reference in New Issue
Block a user