mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
搜索时去掉前后空格
This commit is contained in:
parent
47bba19bec
commit
5832bf9140
|
@ -465,7 +465,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
|
|||
};
|
||||
|
||||
const onSearch = (value: string) => {
|
||||
setSearchText(value);
|
||||
setSearchText(value.trim());
|
||||
};
|
||||
|
||||
const handleCrons = (cron: any) => {
|
||||
|
|
2
src/pages/env/index.tsx
vendored
2
src/pages/env/index.tsx
vendored
|
@ -427,7 +427,7 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
|
|||
};
|
||||
|
||||
const onSearch = (value: string) => {
|
||||
setSearchText(value);
|
||||
setSearchText(value.trim());
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
@ -50,12 +50,18 @@ const Setting = ({ headerStyle, isPhone }: any) => {
|
|||
dataIndex: 'client_id',
|
||||
key: 'client_id',
|
||||
align: 'center' as const,
|
||||
render: (text: string, record: any) => {
|
||||
return <Text copyable>{record.client_id}</Text>;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Client Secret',
|
||||
dataIndex: 'client_secret',
|
||||
key: 'client_secret',
|
||||
align: 'center' as const,
|
||||
render: (text: string, record: any) => {
|
||||
return <Text copyable={{ text: record.client_secret }}>*******</Text>;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '权限',
|
||||
|
|
Loading…
Reference in New Issue
Block a user