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