You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2020/07/12 15:45:39 UTC

[incubator-apisix-dashboard] 01/02: fix(SSL): search api

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git

commit ceb3d2a9ae2eed9f7acd30f21747343ea77b3dea
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Sun Jul 12 23:43:40 2020 +0800

    fix(SSL): search api
---
 src/pages/SSL/service.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/pages/SSL/service.ts b/src/pages/SSL/service.ts
index a7081a9..731c1de 100644
--- a/src/pages/SSL/service.ts
+++ b/src/pages/SSL/service.ts
@@ -8,7 +8,10 @@ export const fetchList = (
 ) => {
   const [expire_start, expire_end] = (props.expire_range || '').split(':');
   let queryObj = omit(props, 'expire_range', '_timestamp');
-  queryObj = pickBy(Object.assign({}, queryObj, { expire_start, expire_end, search }), identity);
+  queryObj = pickBy(
+    Object.assign({}, queryObj, { expire_start, expire_end, sni: search }),
+    identity,
+  );
   const query = querystring.encode(queryObj);
   return request<{ count: number; list: SSLModule.ResSSL[] }>(
     `/ssls?page=${current}&size=${pageSize}&${query}`,