Jelajahi Sumber

refactor(customer-select): 移除多余的JSDoc类型注释以简化代码

yz 1 Minggu lalu
induk
melakukan
eaeb944756
1 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 4 3
      src/components/order-form/customer-select.vue

+ 4 - 3
src/components/order-form/customer-select.vue

@@ -287,12 +287,13 @@ export default {
       try {
         this.loading = true
         
-        /** @type {CustomerListResponse} */
-        const response = await getCustomerList(1, 200, {})
+        const response = await getCustomerList(1, 200, {
+          customerId
+        })
         
         if (response?.data?.success && response.data.data?.records) {
           const allCustomers = response.data.data.records
-          /** @type {CustomerRecord|undefined} */
+          
           const customer = allCustomers.find(item => item.Customer_ID == customerId)
           
           if (customer) {