diff --git a/src/views/Workshop/profile.vue b/src/views/Workshop/profile.vue index ff71137..3d088fd 100644 --- a/src/views/Workshop/profile.vue +++ b/src/views/Workshop/profile.vue @@ -147,6 +147,7 @@ const onScroll = (e: Event) => { // 打开customer选择时关闭profile弹窗 如果不是点击confirem关闭则重新打开profile弹窗 const handleShowPopup = (flag: boolean) => { showSwitchCustomerPopup.value = flag + if(props.isCustomer) return show.value = !flag if (flag) { loadCustomers(true) @@ -178,15 +179,15 @@ const handleFetchCustomerList = () => { } MyEvent.add('update-customer-list', handleFetchCustomerList) -const openSwitchCustomerPopup = (flag = true) => { - showSwitchCustomerPopup.value = flag -} +// const openSwitchCustomerPopup = (flag = true) => { +// showSwitchCustomerPopup.value = flag +// } onMounted(() => { handleFetchCustomerList() }) -defineExpose({ open, close, openSwitchCustomerPopup }) +defineExpose({ open, close, handleShowPopup })