导出比赛代码功能

This commit is contained in:
undefined committed 2020-06-19 13:14:09 +08:00
1 parent b54c22cb84
commit 9247b71b5f
11 files changed
+123 -69

No files matched your search

+2 -2
View File
@@ -26,11 +26,11 @@ const page = new NamedPage('manage_script', () => {
if (action !== 'ok') return;
const args = runScriptDialog.$dom.find('[name="args"]').val();
try {
await request.post('', {
const res = await request.post('', {
args,
id,
});
window.location.reload();
window.location.href = res.url;
} catch (error) {
Notification.error(error.message);
}