mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
@@ -48,6 +48,13 @@ async function handler(req: ApiRequestProps<{}, ClearHistoriesProps>, res: NextA
|
||||
source: ChatSourceEnum.online
|
||||
};
|
||||
}
|
||||
if (authType === 'apikey') {
|
||||
return {
|
||||
teamId: chatTeamId,
|
||||
appId,
|
||||
source: ChatSourceEnum.api
|
||||
};
|
||||
}
|
||||
|
||||
return Promise.reject('Param are error');
|
||||
})();
|
||||
|
@@ -73,7 +73,7 @@ const WorkflowStatusContextProvider = ({ children }: { children: ReactNode }) =>
|
||||
if (isSaved || !leaveSaveSign.current) return;
|
||||
console.log('Leave auto save');
|
||||
const data = flowData2StoreData();
|
||||
if (!data) return;
|
||||
if (!data || data.nodes.length === 0) return;
|
||||
await onSaveApp({
|
||||
...data,
|
||||
isPublish: false,
|
||||
|
Reference in New Issue
Block a user