ui: fix contest_files ui (#385)

This commit is contained in:
panda authored and GitHub committed 2022-07-10 14:54:05 +08:00
1 parent 2a54b0aa25
commit b8a4ed4c52
7 files changed
+27 -9

No files matched your search

@@ -25,6 +25,13 @@ const page = new NamedPage(['contest_edit', 'contest_create', 'homework_create',
ev.target.click();
});
});
setInterval(() => {
$('img').each(function () {
if ($(this).attr('src').startsWith('file://')) {
$(this).attr('src', $(this).attr('src').replace('file://', './file/'));
}
});
}, 500);
}
});