fix clear search invalid
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user