搜索时去掉前后空格

This commit is contained in:
hanhh 2021-08-27 10:47:30 +08:00
parent 47bba19bec
commit 5832bf9140
3 changed files with 8 additions and 2 deletions

View File

@ -465,7 +465,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
};
const onSearch = (value: string) => {
setSearchText(value);
setSearchText(value.trim());
};
const handleCrons = (cron: any) => {

View File

@ -427,7 +427,7 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
};
const onSearch = (value: string) => {
setSearchText(value);
setSearchText(value.trim());
};
useEffect(() => {

View File

@ -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: '权限',