Parcourir la source

课程编辑后跳转

lizhen_gitee il y a 8 mois
Parent
commit
91c85d0ce2
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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 () {