浏览代码

课程编辑后跳转

lizhen_gitee 7 月之前
父节点
当前提交
91c85d0ce2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      public/assets/js/backend/lesson.js

+ 3 - 1
public/assets/js/backend/lesson.js

@@ -63,7 +63,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
             Controller.api.bindevent();
         },
         edit: function () {
-            Controller.api.bindevent();
+            Form.api.bindevent($("form[role=form]"), function(data, ret){
+                window.location.href = ret.url;
+            })
         },
         api: {
             bindevent: function () {