mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: fix contest_delete
This commit is contained in:
1 parent
a43dc22599
commit
fee34811b4
2 files changed
+2
-1
No files matched your search
@@ -753,6 +753,7 @@ export const statusText = (tdoc: Tdoc, tsdoc?: any) => (
|
||||
|
||||
global.Hydro.model.contest = {
|
||||
RULES,
|
||||
AccessControl,
|
||||
add,
|
||||
getListStatus,
|
||||
getMultiStatus,
|
||||
|
||||
@@ -13,7 +13,7 @@ const page = new NamedPage(['contest_edit', 'contest_create', 'homework_create',
|
||||
$(document).on('click', '[name="operation"]', (ev) => {
|
||||
ev.preventDefault();
|
||||
if (confirmed) {
|
||||
return request.post('.', { operation: 'delete' }).then((res) => {
|
||||
return request.post('', { operation: 'delete' }).then((res) => {
|
||||
window.location.href = res.url;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user