修正退出前存档
This commit is contained in:
2
main.js
2
main.js
@@ -141,7 +141,7 @@ export default function () {
|
|||||||
// 捕获退出信号,确保数据存档
|
// 捕获退出信号,确保数据存档
|
||||||
process.on('SIGINT', async () => {
|
process.on('SIGINT', async () => {
|
||||||
tail.unwatch() // 停止监听日志
|
tail.unwatch() // 停止监听日志
|
||||||
await archive('退出前存档数据...')
|
await 存档('退出前存档数据...')
|
||||||
process.exit()
|
process.exit()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user