diff --git a/src/main/webapp/WEB-INF/views/index.jsp b/src/main/webapp/WEB-INF/views/index.jsp index 30681800..fd09e738 100644 --- a/src/main/webapp/WEB-INF/views/index.jsp +++ b/src/main/webapp/WEB-INF/views/index.jsp @@ -61,6 +61,8 @@ show: true//弹出对话框 }); //}, 14400000); + //跳转登录界面 + }else{ setTimeout(function () { $('#exampleModal').modal({ @@ -155,9 +157,15 @@ $("#stateBtn").click(function () { $('#exampleModal').modal('hide'); //手动关闭 - //跳转浏览器地址 - var loginUrl="http://<%=res.getString("POWER_IP")%>:<%=res.getString("POWER_PORT")%>/power"; - window.location.replace(loginUrl); + var loginUrl = "http://<%=res.getString("POWER_IP")%>:<%=res.getString("POWER_PORT")%>/power"; + if (${menuList == null}) { + //最外层的页面跳转跳转浏览器地址 + top.location.href = loginUrl; + }else { + //跳转浏览器地址 + + window.location.replace(loginUrl); + } }); $("ul.treeview-menu li").on({