🐛 修复编辑器自动保存的问题

pull/139/head^2
ruibaby 2019-01-29 22:12:49 +08:00
parent 2099be7281
commit c44d4371f1
3 changed files with 6 additions and 3 deletions

View File

@ -249,7 +249,8 @@
},function (data) {
if(data.code===1){
//清除自动保存的内容
easyMDE.clearAutosavedValue();
easyMDE.toTextArea();
easyMDE = null;
halo.showMsgAndRedirect(data.msg,'success',1000,'/admin/page',"${options.admin_pjax!'true'}");
}else{
halo.showMsg(data.msg,'error',2000);

View File

@ -315,7 +315,8 @@
},function (data) {
if(data.code === 1){
//清除自动保存的内容
easyMDE.clearAutosavedValue();
easyMDE.toTextArea();
easyMDE = null;
halo.showMsgAndRedirect(data.msg,'success',1000,'/admin/posts',"${options.admin_pjax!'true'}");
}else{
halo.showMsg(data.msg,'error',2000);

View File

@ -291,7 +291,8 @@
},function (data) {
if(data.code === 1){
//清除自动保存的内容
easyMDE.clearAutosavedValue();
easyMDE.toTextArea();
easyMDE = null;
halo.showMsgAndRedirect(data.msg,'success',1000,'/admin/posts',"${options.admin_pjax!'true'}");
}else{
halo.showMsg(data.msg,'error',2000);