diff --git a/zlt-web/back-web/src/main/resources/static/module/index.js b/zlt-web/back-web/src/main/resources/static/module/index.js index 1637c0956dafa8473d55a8a5c7c18ee900011b20..37b97cc6301016f63744ebd4da50d5282232bed4 100644 --- a/zlt-web/back-web/src/main/resources/static/module/index.js +++ b/zlt-web/back-web/src/main/resources/static/module/index.js @@ -213,11 +213,13 @@ layui.define(['config', 'admin', 'layer', 'laytpl', 'element', 'form'], function // 退出登录 $('#btnLogout').click(function () { layer.confirm('确定退出登录?', function () { - //通过认证中心 tuic - admin.req('api-uaa/oauth/remove/token', {}, function (data) { - config.removeToken(); - location.replace('login.html'); - }, 'POST'); + let token = config.getToken(); + let accessToken; + if (token) { + accessToken = token.access_token; + } + config.removeToken(); + window.location = config.base_server + 'api-uaa/oauth/remove/token?redirectUri=http://127.0.0.1:8066/login.html&access_token='+accessToken; }); }); // 修改密码