From e1c00645e734db007f9268e15ea574c60ace2517 Mon Sep 17 00:00:00 2001 From: t123yh Date: Tue, 22 Aug 2017 11:01:14 +0800 Subject: [PATCH] Refine cleanup logic. --- views/submission_content.ejs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/views/submission_content.ejs b/views/submission_content.ejs index 653e6da..5040642 100644 --- a/views/submission_content.ejs +++ b/views/submission_content.ejs @@ -222,7 +222,10 @@ if (token != null) { socket.emit('join', token, (data) => { if (data && data.ok) { if (data.finished) { - alert('This submission is finished but not reported to the server. Please try again later.'); + vueApp.roughData = data.roughResult; + vueApp.detailData = data.result || { + systemMessage: "系统出错,请刷新后重试。" + }; } else { if (data.current.running) { vueApp.roughData.running = true;