mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-18 02:14:32 +08:00
修复退出登录和定时任务搜索
This commit is contained in:
@@ -96,7 +96,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||
style={{ cursor: 'point' }}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setSearchText(`label:${label}`);
|
||||
setSearchValue(`label:${label}`);
|
||||
}}
|
||||
>
|
||||
<a>{label}</a>
|
||||
@@ -364,6 +364,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||
const [tableScrollHeight, setTableScrollHeight] = useState<number>();
|
||||
const [isDetailModalVisible, setIsDetailModalVisible] = useState(false);
|
||||
const [detailCron, setDetailCron] = useState<any>();
|
||||
const [searchValue, setSearchValue] = useState('');
|
||||
|
||||
const goToScriptManager = (record: any) => {
|
||||
const cmd = record.command.split(' ') as string[];
|
||||
@@ -842,7 +843,8 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||
enterButton
|
||||
allowClear
|
||||
loading={loading}
|
||||
value={searchText}
|
||||
value={searchValue}
|
||||
onChange={(e) => setSearchValue(e.target.value)}
|
||||
onSearch={onSearch}
|
||||
/>,
|
||||
<Button key="2" type="primary" onClick={() => addCron()}>
|
||||
|
||||
Reference in New Issue
Block a user