From 45812e99c68e7f8912da437c220f18f7330e880f Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Wed, 7 Feb 2024 10:35:40 +0800 Subject: [PATCH] 'commit' --- WebRoot/pindex.html | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/WebRoot/pindex.html b/WebRoot/pindex.html index e0a2a702..ebe9c9f9 100644 --- a/WebRoot/pindex.html +++ b/WebRoot/pindex.html @@ -140,18 +140,11 @@ // 登出逻辑 admin.logout(function () { - $.ajax({ - type: "GET", - async: false, - url: "/QingLong/loginPerson/logout", - success: function (res) { - if (res.success) { - popup.success("注销成功", function () { - location.href = "plogin.html"; - }); - } - } + + popup.success("注销成功", function () { + window.location = "/QingLong/loginPerson/logout"; }); + return true; });