fix clear search invalid
This commit is contained in:
@@ -654,7 +654,7 @@ watch(keyword, async () => {
|
||||
return;
|
||||
}
|
||||
const hadSelectedCustomer = !!customerId.value;
|
||||
const isCustomerKeyword = hadSelectedCustomer && keyword.value.trim() === customerKeyword;
|
||||
const isCustomerKeyword = hadSelectedCustomer && !!customerKeyword && keyword.value.trim() === customerKeyword;
|
||||
customerKeyword = "";
|
||||
if (isCustomerKeyword) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user