This commit is contained in:
archer
2023-05-31 11:37:39 +08:00
parent 24319fe860
commit c9ee6fabe4
2 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS modelData (
kb_id VARCHAR(50) NOT NULL,
source VARCHAR(100),
q TEXT NOT NULL,
a TEXT NOT NULL,
a TEXT NOT NULL
);
-- 索引设置,按需取
-- CREATE INDEX IF NOT EXISTS modelData_userId_index ON modelData USING HASH (user_id);

View File

@@ -205,10 +205,10 @@ const DataCard = ({ kbId }: { kbId: string }) => {
)}
<Box flex={1} />
<Input
maxW={'240px'}
maxW={['90%', '300px']}
size={'sm'}
value={searchText}
placeholder="搜索相关问题和答案,回车确认"
placeholder="搜索匹配知识,补充知识和来源,回车确认"
onChange={(e) => setSearchText(e.target.value)}
onBlur={() => {
if (searchText === lastSearch.current) return;