From 5832bf9140489dfaa4fa8c9259770241ccc9deb4 Mon Sep 17 00:00:00 2001
From: hanhh <18330117883@163.com>
Date: Fri, 27 Aug 2021 10:47:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=97=B6=E5=8E=BB=E6=8E=89?=
=?UTF-8?q?=E5=89=8D=E5=90=8E=E7=A9=BA=E6=A0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/crontab/index.tsx | 2 +-
src/pages/env/index.tsx | 2 +-
src/pages/setting/index.tsx | 6 ++++++
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx
index c1d06d6b..75843da1 100644
--- a/src/pages/crontab/index.tsx
+++ b/src/pages/crontab/index.tsx
@@ -465,7 +465,7 @@ const Crontab = ({ headerStyle, isPhone }: any) => {
};
const onSearch = (value: string) => {
- setSearchText(value);
+ setSearchText(value.trim());
};
const handleCrons = (cron: any) => {
diff --git a/src/pages/env/index.tsx b/src/pages/env/index.tsx
index 4087f90f..6088ce81 100644
--- a/src/pages/env/index.tsx
+++ b/src/pages/env/index.tsx
@@ -427,7 +427,7 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
};
const onSearch = (value: string) => {
- setSearchText(value);
+ setSearchText(value.trim());
};
useEffect(() => {
diff --git a/src/pages/setting/index.tsx b/src/pages/setting/index.tsx
index 14608c6f..b805dd6c 100644
--- a/src/pages/setting/index.tsx
+++ b/src/pages/setting/index.tsx
@@ -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 {record.client_id};
+ },
},
{
title: 'Client Secret',
dataIndex: 'client_secret',
key: 'client_secret',
align: 'center' as const,
+ render: (text: string, record: any) => {
+ return *******;
+ },
},
{
title: '权限',