FEAT => 本次更新项目为:
This commit is contained in:
@@ -145,7 +145,7 @@ const TrafficPoolList: React.FC = () => {
|
|||||||
|
|
||||||
// 可以添加成功提示
|
// 可以添加成功提示
|
||||||
Toast.show({
|
Toast.show({
|
||||||
content: `成功将${selectedIds.length}个用户加入分组`,
|
content: `成功将用户加入分组`,
|
||||||
position: "top",
|
position: "top",
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -174,6 +174,12 @@ const TrafficPoolList: React.FC = () => {
|
|||||||
return cleanup;
|
return cleanup;
|
||||||
}, [debouncedSearch]);
|
}, [debouncedSearch]);
|
||||||
|
|
||||||
|
const handSearch = (value: string) => {
|
||||||
|
setSearchInput(value);
|
||||||
|
setSelectedIds([]);
|
||||||
|
debouncedSearch();
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout
|
<Layout
|
||||||
loading={loading}
|
loading={loading}
|
||||||
@@ -196,7 +202,7 @@ const TrafficPoolList: React.FC = () => {
|
|||||||
<Input
|
<Input
|
||||||
placeholder="搜索计划名称"
|
placeholder="搜索计划名称"
|
||||||
value={searchInput}
|
value={searchInput}
|
||||||
onChange={e => setSearchInput(e.target.value)}
|
onChange={e => handSearch(e.target.value)}
|
||||||
prefix={<SearchOutlined />}
|
prefix={<SearchOutlined />}
|
||||||
allowClear
|
allowClear
|
||||||
size="large"
|
size="large"
|
||||||
|
|||||||
Reference in New Issue
Block a user