diff --git a/src/api/workshop.ts b/src/api/workshop.ts index 4ced352..171f5f4 100644 --- a/src/api/workshop.ts +++ b/src/api/workshop.ts @@ -147,7 +147,7 @@ export function getTryOnEffectStyleList(styleId: string | number) { // 选择顾客 interface CustomerInfo { name: string - email: string + email?: string } export const customerCheckin = (data: CustomerInfo) => { return request({ diff --git a/src/views/asistant/index.vue b/src/views/asistant/index.vue index 97bdfcc..4981c47 100644 --- a/src/views/asistant/index.vue +++ b/src/views/asistant/index.vue @@ -83,10 +83,10 @@ const sendPrefilledMessage = () => { onMounted(() => { sessionId.value = Math.floor(Date.now() / 1000).toString() generateStore.setSessionId(sessionId.value) - sendPrefilledMessage() }) onActivated(() => { + sendPrefilledMessage() noticeListRef.value?.scrollToBottom() }) diff --git a/src/views/stylist/customer.vue b/src/views/stylist/customer.vue index 78a6be9..f13d034 100644 --- a/src/views/stylist/customer.vue +++ b/src/views/stylist/customer.vue @@ -13,7 +13,7 @@