Commit af24c146 authored by xiabin's avatar xiabin

防止误操作,在上传过程中关闭页面。

parent 556b8107
......@@ -85,6 +85,7 @@ var vm = new Vue({
$.post("/my-course/save", data, function(t) {
layer.close(idx);
if (t.status) {
window.onbeforeunload=null;
layer.msg('成功修改课程信息。', {
time: 2000,
icon: 1,
......
......@@ -103,6 +103,7 @@ var vm = new Vue({
$.post("/my-course/submit", data, function(t) {
layer.close(idx);
if (t.status) {
window.onbeforeunload=null;
location.replace("/my-course/result?id=" + t.data.course_id + "&action=publish");
} else {
layer.alert(t.message, {icon:5, title:"提示"});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment