From bd5269f3f712393a202469f30321465658f7aff0 Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Thu, 15 Aug 2024 11:59:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=96=E8=BE=91=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=BE=9B=E5=BA=94=E5=95=86=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=98=B2=E6=8A=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/account/Management.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} >