修改页面成功关闭tab

This commit is contained in:
hdm 2022-11-14 22:53:35 +08:00
parent 0f638e7093
commit 015b7782dc

View File

@ -46,10 +46,9 @@
let callback = function (e) {
layer.msg(e.msg);
if (e.code == 0) {
layer.confirm('修改密码成功,关闭本页面吗?', { icon: 3, title: '提示' }, function (index) {
TAB.sonDelete();
layer.close(index);
});
setTimeout(function(){
tool.tabClose();
},2000);
}
}
tool.post("/admin/api/password_submit", data.field, callback);