From 5b97b4d6834c15a4e56b3a13f8feb671b2abca39 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Tue, 26 Nov 2024 09:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/public.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/public.js b/js/public.js index 179864d..707fc92 100644 --- a/js/public.js +++ b/js/public.js @@ -21,7 +21,6 @@ function ajaxRequest(url, type, data, async, beforeFn, successFn, errorFn, conte beforeSend: beforeFn, contentType: contentType || "application/x-www-form-urlencoded; charset=utf-8", success: function (data) { - // closeWindowOpen(); if (data.code === 401) { closeWindowOpen(); } @@ -263,7 +262,7 @@ function checkValue(value) { // 页面401关闭页面 function closeWindowOpen() { - top.layer.confirm('登录已过期,请点击确定后重新登录!', { + let layerIndex = top.layer.confirm('登录已过期,请点击确定后重新登录!', { btn: ['确认', '取消'], 'title': '操作提示', move:false, @@ -272,6 +271,7 @@ function closeWindowOpen() { } }, function () { window.close(); + top.layer.close(layerIndex); }, function () { window.close(); });