diff --git a/src/views/account/Management.jsx b/src/views/account/Management.jsx index 6f88084..2d337d6 100644 --- a/src/views/account/Management.jsx +++ b/src/views/account/Management.jsx @@ -1,7 +1,7 @@ import SearchForm from '@/components/SearchForm' import useAccountStore, { fetchRoleList, fetchTravelAgencyByName, genRandomPassword } from '@/stores/Account' import useFormStore from '@/stores/Form' -import { isEmpty } from '@/utils/commons' +import { isEmpty, debounce } from '@/utils/commons' import { ExclamationCircleFilled } from '@ant-design/icons' import { App, Button, Col, Form, Input, Modal, Row, Select, Space, Table, Typography, Switch } from 'antd' import dayjs from 'dayjs' @@ -299,7 +299,7 @@ function Management() { loading={dataLoading} showSearch filterOption={false} - onSearch={handleTravelAgencySearch} + onSearch={debounce(handleTravelAgencySearch, 800)} notFoundContent={null} >