mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
使用url()来构建url
This commit is contained in:
1 parent
0efac48bde
commit
86f67a0ec3
61 files changed
+262
-275
No files matched your search
@@ -3,9 +3,9 @@
|
||||
<script>
|
||||
var Context = {
|
||||
'problemId': "{{ pdoc.pid }}",
|
||||
'postSubmitUrl': "/p/{{ pdoc.pid }}/submit",
|
||||
'getSubmissionsUrl': "/p/{{ pdoc.pid }}/submit",
|
||||
'getRecordDetailUrl': "/r/{rid}",
|
||||
'postSubmitUrl': "{{ url('problem_submit', pid=pdoc.pid) }}",
|
||||
'getSubmissionsUrl': "{{ url('problem_submit', pid=pdoc.pid) }}",
|
||||
'getRecordDetailUrl': "{{ url('record_detail', rid='{rid}') }}",
|
||||
'code_lang': "{{ handler.user.codeLang }}",
|
||||
'code_template': "{{ handler.user.codeTemplate }}",
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user