mirror of https://github.com/halo-dev/halo
🐛 修复编辑器自动保存的问题
parent
2099be7281
commit
c44d4371f1
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue