fix clear search invalid

This commit is contained in:
Timi
2026-10-24 18:32:29 +08:00
parent c96ecae4aa
commit 2887af204d
+1 -1
View File
@@ -654,7 +654,7 @@ watch(keyword, async () => {
return; return;
} }
const hadSelectedCustomer = !!customerId.value; const hadSelectedCustomer = !!customerId.value;
const isCustomerKeyword = hadSelectedCustomer && keyword.value.trim() === customerKeyword; const isCustomerKeyword = hadSelectedCustomer && !!customerKeyword && keyword.value.trim() === customerKeyword;
customerKeyword = ""; customerKeyword = "";
if (isCustomerKeyword) { if (isCustomerKeyword) {
return; return;