fix: pm add error

This commit is contained in:
chenos 2022-09-26 15:03:22 +08:00
parent 50286e2c3c
commit b8fc705df7
2 changed files with 7 additions and 3 deletions

View File

@ -35,10 +35,9 @@ export default (app: Application) => {
try {
if (started) {
const res = await axios.get(`${baseURL}pm:add/${plugins.join(',')}`);
console.log(res.data);
return;
} else {
await app.pm.add(plugins);
}
await app.pm.add(plugins);
} catch (error) {}
const fs = require('fs/promises');
await Promise.all(

View File

@ -0,0 +1,5 @@
import React from 'react';
export default React.memo((props) => {
return <>{props.children}</>;
});