hookehuyr

fix(search): 修复搜索页计划书弹窗无法关闭的问题

- 添加缺失的 handlePlanClose 事件处理函数
- 关闭时清空 selectedProduct 避免数据残留

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
......@@ -482,6 +482,17 @@ const openPlanPopup = (productId) => {
showPlanPopup.value = true
}
/**
* 处理计划书弹窗关闭
*
* @description 关闭弹窗并清空选中的产品
*/
const handlePlanClose = () => {
console.log('[Search] 关闭计划书弹窗')
showPlanPopup.value = false
selectedProduct.value = null
}
// 使用 composable 统一处理计划书提交后逻辑
const { handlePlanSubmit } = usePlanSubmit({
getPopupState: () => showPlanPopup.value,
......