diff --git a/apps/admin.js b/apps/admin.js index b74fe44e..c9ac339b 100644 --- a/apps/admin.js +++ b/apps/admin.js @@ -181,7 +181,7 @@ export async function updateMiaoPlugin(e) { }), { EX: 30 }); timer = setTimeout(function () { let command = `npm run start`; - if(process.argv[1].includes("pm2")){ + if (process.argv[1].includes("pm2")) { command = `npm run restart`; } exec(command, function (error, stdout, stderr) {