4.6.4-alpha (#569)
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import type { ChatHistoryItemResType } from '@fastgpt/global/core/chat/api.d';
|
||||
import type { ChatHistoryItemResType } from '@fastgpt/global/core/chat/type.d';
|
||||
|
||||
export function selectShareResponse({ responseData }: { responseData: ChatHistoryItemResType[] }) {
|
||||
export function selectShareResponse({
|
||||
responseData = []
|
||||
}: {
|
||||
responseData?: ChatHistoryItemResType[];
|
||||
}) {
|
||||
const filedList = [
|
||||
'moduleType',
|
||||
'moduleName',
|
||||
'moduleLogo',
|
||||
'runningTime',
|
||||
'historyPreview',
|
||||
'quoteList',
|
||||
'question'
|
||||
];
|
||||
@@ -17,6 +22,6 @@ export function selectShareResponse({ responseData }: { responseData: ChatHistor
|
||||
obj[key] = item[key];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
return obj as ChatHistoryItemResType;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user