diff --git a/xxl-job-admin/src/main/webapp/static/js/common.1.js b/xxl-job-admin/src/main/webapp/static/js/common.1.js index 2292bead..5fdaf65b 100644 --- a/xxl-job-admin/src/main/webapp/static/js/common.1.js +++ b/xxl-job-admin/src/main/webapp/static/js/common.1.js @@ -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); + } + }); }); });