找到原来的登出地址修改
var casUrl = contextPath + '/user/caslogout.jsp';
window.location.href = casUrl;
新增caslogout.jsp页面
<%@page pageEncoding="UTF-8" contentType="text/html; charset=utf-8" trimDirectiveWhitespaces="true"%>
<%@page import="java.net.URLEncoder" %>
<%@page import="aa.product.common.util.PropertyGetter" %>
<%
String casServerLogoutUrl = PropertyGetter.getString("cas.casServerLogoutUrl");
String serverName = PropertyGetter.getString("cas.serverName");
String caslogoutUrl = casServerLogoutUrl + "?service=";
String rUrl = caslogoutUrl + URLEncoder.encode(serverName);
request.setAttribute("rUrl",rUrl);
Cookie newCookie = new Cookie("JSESSIONID",null);
newCookie.setMaxAge(0);
newCookie.setPath("/");
response.addCookie(newCookie);
session.invalidate();
response.sendRedirect(rUrl);
%>
<h3>注销成功!即将自动跳转到统一认证登录页...</h3>
<h4>如果您的浏览器没有自动跳转,请点击<a href="${rUrl}">此处</a>。</h4>