添加退出登录
This commit is contained in:
parent
2fc0465d43
commit
5b97b4d683
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue