fix: pm add error
This commit is contained in:
parent
50286e2c3c
commit
b8fc705df7
@ -35,10 +35,9 @@ export default (app: Application) => {
|
|||||||
try {
|
try {
|
||||||
if (started) {
|
if (started) {
|
||||||
const res = await axios.get(`${baseURL}pm:add/${plugins.join(',')}`);
|
const res = await axios.get(`${baseURL}pm:add/${plugins.join(',')}`);
|
||||||
console.log(res.data);
|
} else {
|
||||||
return;
|
await app.pm.add(plugins);
|
||||||
}
|
}
|
||||||
await app.pm.add(plugins);
|
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
const fs = require('fs/promises');
|
const fs = require('fs/promises');
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
export default React.memo((props) => {
|
||||||
|
return <>{props.children}</>;
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user