mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 05:19:51 +00:00
perf: export source
This commit is contained in:
@@ -95,7 +95,7 @@ const DataCard = ({ kbId }: { kbId: string }) => {
|
||||
onSuccess(res) {
|
||||
try {
|
||||
const text = Papa.unparse({
|
||||
fields: ['question', 'answer'],
|
||||
fields: ['question', 'answer', 'source'],
|
||||
data: res
|
||||
});
|
||||
fileDownload({
|
||||
|
@@ -36,7 +36,7 @@ const Detail = ({ kbId }: { kbId: string }) => {
|
||||
});
|
||||
const { reset } = form;
|
||||
|
||||
useQuery([kbId, myKbList], () => getKbDetail(kbId), {
|
||||
useQuery([kbId], () => getKbDetail(kbId), {
|
||||
onSuccess(res) {
|
||||
kbId && setLastKbId(kbId);
|
||||
if (res) {
|
||||
|
Reference in New Issue
Block a user