From dfa6d42d805b0267f57996f60719e656a509916a Mon Sep 17 00:00:00 2001 From: "xueli.xue" Date: Tue, 17 May 2016 17:54:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=94=80=E7=99=BB=E5=BD=95=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/webapp/static/js/common.1.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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); + } + }); }); });