mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 08:25:07 +00:00
4.8.7 test (#2058)
* fix: query extension id;App page change type invalid * prettier
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "app",
|
||||
"version": "4.8.6",
|
||||
"version": "4.8.7",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
@@ -71,7 +71,7 @@
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/jsonwebtoken": "^9.0.3",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/node": "^20.14.2",
|
||||
"@types/node": "20.14.0",
|
||||
"@types/react": "18.3.1",
|
||||
"@types/react-dom": "18.3.0",
|
||||
"@types/react-syntax-highlighter": "^15.5.6",
|
||||
|
@@ -12,7 +12,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
|
||||
const { binary, metadata } = await readMongoImg({ id });
|
||||
|
||||
res.setHeader('Content-Type', metadata?.mime ?? guessBase64ImageType(binary.toString('base64')));
|
||||
res.setHeader(
|
||||
'Content-Type',
|
||||
metadata?.mime ?? guessBase64ImageType(binary.toString('base64'))
|
||||
);
|
||||
res.send(binary);
|
||||
} catch (error) {
|
||||
jsonRes(res, {
|
||||
|
@@ -79,21 +79,13 @@ const AppListContextProvider = ({ children }: { children: ReactNode }) => {
|
||||
|
||||
return [AppTypeEnum.folder, type];
|
||||
})();
|
||||
|
||||
return getMyApps({ parentId, type: formatType, searchKey });
|
||||
},
|
||||
{
|
||||
refreshOnWindowFocus: true,
|
||||
refreshDeps: [parentId, type]
|
||||
}
|
||||
);
|
||||
useThrottleEffect(
|
||||
() => {
|
||||
loadMyApps();
|
||||
},
|
||||
[searchKey],
|
||||
{
|
||||
wait: 500
|
||||
manual: false,
|
||||
refreshDeps: [searchKey, parentId, type],
|
||||
throttleWait: 500,
|
||||
refreshOnWindowFocus: true
|
||||
}
|
||||
);
|
||||
|
||||
|
@@ -22,6 +22,10 @@ export function connectToDatabase() {
|
||||
initGlobal();
|
||||
},
|
||||
afterHook: async () => {
|
||||
if (global.systemInitd) return;
|
||||
|
||||
global.systemInitd = true;
|
||||
|
||||
systemStartCb();
|
||||
|
||||
//init system config;init vector database;init root user
|
||||
|
Reference in New Issue
Block a user