diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/OnlineExamController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/OnlineExamController.java index 6b62c0b..41982ce 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/OnlineExamController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/OnlineExamController.java @@ -55,7 +55,7 @@ public class OnlineExamController extends BaseController { @ApiOperation("去考试") @GetMapping("/toExam/{id}") - public String add(@PathVariable("id") String id, ModelMap mmap) { + public String toExam(@PathVariable("id") String id, ModelMap mmap) { mmap.put("exam",examManager.view(id)); return prefix + "/toExam"; } diff --git a/ruoyi-admin/src/main/resources/templates/system/elExam/onlineExam/onlineExam.html b/ruoyi-admin/src/main/resources/templates/system/elExam/onlineExam/onlineExam.html index 73d58e8..3a60ed7 100644 --- a/ruoyi-admin/src/main/resources/templates/system/elExam/onlineExam/onlineExam.html +++ b/ruoyi-admin/src/main/resources/templates/system/elExam/onlineExam/onlineExam.html @@ -44,7 +44,7 @@ var options = { uniqueId: "id", url: prefix + "/list", - createUrl: prefix + "/add", + updateUrl: prefix + "/toExam/{id}", modalName: "在线考试", columns: [{ checkbox: false