Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
c9ee6fab
authored
May 31, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: sql
parent
24319fe8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
docs/deploy/fastgpt/pg/init.sql
+1
-1
src/pages/kb/components/DataCard.tsx
+2
-2
No files found.
docs/deploy/fastgpt/pg/init.sql
View file @
c9ee6fab
...
@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS modelData (
...
@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS modelData (
kb_id
VARCHAR
(
50
)
NOT
NULL
,
kb_id
VARCHAR
(
50
)
NOT
NULL
,
source
VARCHAR
(
100
),
source
VARCHAR
(
100
),
q
TEXT
NOT
NULL
,
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);
-- CREATE INDEX IF NOT EXISTS modelData_userId_index ON modelData USING HASH (user_id);
...
...
src/pages/kb/components/DataCard.tsx
View file @
c9ee6fab
...
@@ -205,10 +205,10 @@ const DataCard = ({ kbId }: { kbId: string }) => {
...
@@ -205,10 +205,10 @@ const DataCard = ({ kbId }: { kbId: string }) => {
)
}
)
}
<
Box
flex=
{
1
}
/>
<
Box
flex=
{
1
}
/>
<
Input
<
Input
maxW=
{
'240px'
}
maxW=
{
[
'90%'
,
'300px'
]
}
size=
{
'sm'
}
size=
{
'sm'
}
value=
{
searchText
}
value=
{
searchText
}
placeholder=
"搜索
相关问题和答案
,回车确认"
placeholder=
"搜索
匹配知识,补充知识和来源
,回车确认"
onChange=
{
(
e
)
=>
setSearchText
(
e
.
target
.
value
)
}
onChange=
{
(
e
)
=>
setSearchText
(
e
.
target
.
value
)
}
onBlur=
{
()
=>
{
onBlur=
{
()
=>
{
if
(
searchText
===
lastSearch
.
current
)
return
;
if
(
searchText
===
lastSearch
.
current
)
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment