core: 修复错误

* 无法下载测试数据的问题
* 无法导出作业成绩单的问题
* cli 模式无法载入的问题
* syzoj 导入跳转错误的问题
This commit is contained in:
undefined committed 2021-01-25 22:23:06 +08:00
1 parent 66639b14de
commit f0b9bee937
8 files changed
+19 -26

No files matched your search

+1 -1
View File
@@ -304,7 +304,7 @@ export class HandlerCommon {
try {
const { anchor } = args;
if (args.domainId) name += '_with_domainId';
else if (this.domain.host !== this.request.host && this.domainId !== 'system') {
else if (this.domain?.host !== this.request.host && this.domainId !== 'system') {
name += '_with_domainId';
args.domainId = this.domainId;
}