Skip to content

Commit

Permalink
Fix delete mail
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentiumYT committed Mar 22, 2024
1 parent 93a8112 commit 0c3d9c1
Showing 1 changed file with 1 addition and 35 deletions.
36 changes: 1 addition & 35 deletions mail_sys/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3667,39 +3667,6 @@
}
});
},
// 删除邮件_方法
del_mail_view: function (index) {
var item = this.mail_list[index],
path = item.path,
_this = this;
this.send({
tips: 'Deleting message, please wait...',
method: 'delete_mail',
data: {
path: path
},
success: function (res) {
if (!_this.is_mail) {
_this.create_mail_list({
p: 1
}, function () {
layer.msg(res.msg, {
icon: 1
});
});
} else {
_this.create_sent_mail_list({
p: 1
}, function () {
layer.msg(res.msg, {
icon: 1
});
});
}

}
});
},
//获取备份设置参数
get_backup_task_status: function (callback) {
this.send({
Expand Down Expand Up @@ -3784,7 +3751,7 @@
method: 'delete_mail',
data: {path:path},
success: function (res) {
if(_this.is_mail){
if(!_this.is_mail){
_this.create_mail_list({p:1},function(){
layer.msg(res.msg,{icon:1});
});
Expand All @@ -3793,7 +3760,6 @@
layer.msg(res.msg,{icon:1});
});
}

}
});
},
Expand Down

0 comments on commit 0c3d9c1

Please sign in to comment.