lanjianrong 5 년 전
부모
커밋
c182e10a77
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/Customer/Contact/components/CustomerModal/index.jsx

+ 2 - 2
src/pages/Customer/Contact/components/CustomerModal/index.jsx

@@ -25,8 +25,8 @@ const SearchModal = ({ clientId, onSelect }) => {
     const { data: { customer, total } = { customer: [], total: 0 }, code = -1 } =
       await queryCustomers(params)
     if (code === consts.RET_CODE.SUCCESS) {
-      if (params?.page === 1) {
-        // 请求的是第一页
+      if (params?.page === 1 || params?.search) {
+        // 请求的是第一页或者搜索框
         setState({ ...state, customer, total, laoding: false })
       } else {
         setState({