Skip to content

Commit

Permalink
fix: 前台重启无反应
Browse files Browse the repository at this point in the history
  • Loading branch information
OduckO authored Aug 21, 2024
1 parent 59ea124 commit ea52396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/tools/restart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const restart = async (self_id: string, contact: Contact, message_id: str

if (isFront) {
if (!process.send) return { status: 'failed', data: '前台重启失败,当前环境不支持,仅支持【npx karin start】启动的环境' }
process.send({ action: 'result', env: process.env })
process.send({ action: 'npx karin start', env: process.env })
process.exit()
}

Expand Down

0 comments on commit ea52396

Please sign in to comment.