提交 dfa6d42d 编写于 作者: X xueli.xue

注销登录二次确认

上级 00465f53
......@@ -17,14 +17,16 @@ $(function(){
// logout
$("#logoutBtn").click(function(){
$.post(base_url + "/logout", function(data, status) {
if (data.code == "200") {
ComAlert.show(1, "注销成功", function(){
window.location.href = base_url;
});
} else {
ComAlert.show(1, data.msg);
}
ComConfirm.show("确认注销登录?", function(){
$.post(base_url + "/logout", function(data, status) {
if (data.code == "200") {
ComAlert.show(1, "注销成功", function(){
window.location.href = base_url;
});
} else {
ComAlert.show(1, data.msg);
}
});
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册