diff --git a/views/upload_testdata.ejs b/views/upload_testdata.ejs index eb1bea5..1fbe8e3 100644 --- a/views/upload_testdata.ejs +++ b/views/upload_testdata.ejs @@ -1,17 +1,17 @@ <% this.title = '上传测试数据'; %> <% include header %>
数据包:<%= problem.testdata.filename %>
+ <% if (problem.testdata) { %> +数据包:<%= problem.testdata.filename %>
<% try { let list = syzoj.utils.parseTestData(problem.testdata.getPath()); %> -输入文件 | 输出文件 | @@ -25,26 +25,26 @@
---|