From cc0bd73ed1c48c1fed0da95fcfc2890d1cd73012 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 14 May 2024 20:31:04 +0800 Subject: [PATCH] refactor: change weight of commit list search --- src/client/components/CommonList.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/components/CommonList.tsx b/src/client/components/CommonList.tsx index 84809a7..4339c19 100644 --- a/src/client/components/CommonList.tsx +++ b/src/client/components/CommonList.tsx @@ -32,16 +32,16 @@ export const CommonList: React.FC = React.memo((props) => { { keys: [ { - name: 'id', + name: 'title', weight: 1, }, { - name: 'title', - weight: 0.7, + name: 'id', + weight: 0.6, }, { name: 'tags', - weight: 0.3, + weight: 0.4, }, ], }