mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-31 03:22:18 +00:00
feat: admin add custom plugin (#2582)
* feat: admin add custom plugin * refresh plugins * plugin input box ui * fix: run plugin varialbes error * perf: comment * fix: ts
This commit is contained in:
@@ -27,8 +27,10 @@ const refetchSystemPlugins = () => {
|
||||
const changeStream = MongoSystemPluginSchema.watch();
|
||||
|
||||
changeStream.on('change', async (change) => {
|
||||
try {
|
||||
getSystemPlugins(true);
|
||||
} catch (error) {}
|
||||
setTimeout(() => {
|
||||
try {
|
||||
getSystemPlugins(true);
|
||||
} catch (error) {}
|
||||
}, 5000);
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user