支持彩色编译信息输出

This commit is contained in:
undefined committed 2020-06-18 13:14:39 +08:00
1 parent f293e1f59e
commit d040b153a1
18 files changed
+130 -59

No files matched your search

+2 -1
View File
@@ -33,7 +33,8 @@ class SystemDashboardHandler extends SystemHandler {
}
async postRestart() {
process.send({ event: 'restart' });
const count = await system.get('server.worker');
process.send({ event: 'restart', count });
this.back();
}
}
+1 -1
View File
@@ -183,7 +183,7 @@ class ProblemSubmitHandler extends ProblemDetailHandler {
user.incDomain(domainId, this.user._id, 'nSubmit'),
]);
this.response.body = { rid };
this.response.redirect = `/r/${rid}`;
this.response.redirect = this.url('record_detail', { rid });
}
}