From 9d0b29ab954411075569eb3b1c7f6cd7d6600b7d Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Tue, 30 Dec 2025 11:16:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=87=E6=8D=A2=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E8=BF=94=E5=9B=9E=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Workshop/profile.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/Workshop/profile.vue b/src/views/Workshop/profile.vue index 6c642d4..ea6f451 100644 --- a/src/views/Workshop/profile.vue +++ b/src/views/Workshop/profile.vue @@ -2,7 +2,7 @@ import { ref, reactive, onMounted, inject } from 'vue' import router from '@/router' import { showConfirmDialog, showToast } from 'vant' - import { useUserInfoStore, useOverallStore } from '@/stores' + import { useUserInfoStore, useOverallStore,useGenerateStore } from '@/stores' import { LogOut } from '@/api/login' import { getCustomerList, type CustomerListParams, customerCheckin } from '@/api/workshop' import MyEvent from '@/utils/myEvent' @@ -15,6 +15,8 @@ const userInfoStore = useUserInfoStore() const overallStore = useOverallStore() + const generateStore = useGenerateStore() + const emit = defineEmits(['selected-customer']) const show = ref(false) const isEdit = ref(false) @@ -187,7 +189,8 @@ customerCheckin({ nickname: selectedCustomer.name }).then((res) => { useUserInfoStore().resetGenerateParams() MyEvent.emit('clear-generate-state') - useUserInfoStore().setCustomerInfo(res) + useGenerateStore().setCustomerInfo(res) + router.push({ path: '/workshop/home' }) }) } showSwitchCustomerPopup.value = false