Commit 556b8107 authored by xiabin's avatar xiabin

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

parent 8a84f514
...@@ -110,3 +110,8 @@ var vm = new Vue({ ...@@ -110,3 +110,8 @@ var vm = new Vue({
richText.createEditor($("#introEditor"), this.tmp); richText.createEditor($("#introEditor"), this.tmp);
} }
}); });
//添加关闭提示页面
window.onbeforeunload=function () {
var warning="确认退出?";
return warning;
};
\ No newline at end of file
...@@ -121,3 +121,10 @@ var vm = new Vue({ ...@@ -121,3 +121,10 @@ var vm = new Vue({
richText.createEditor($("#introEditor"), this.tmp); richText.createEditor($("#introEditor"), this.tmp);
} }
}); });
//添加关闭提示页面
window.onbeforeunload=function () {
var warning="确认退出?";
return warning;
};
\ No newline at end of file
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