Commit e5a211f2 authored by 雍欢's avatar 雍欢

修改web_app.name赋值方式,使项目可以部署到 / 下面

parent 2213facd
......@@ -25,6 +25,10 @@
response.setHeader("Cache-Control","No-cache");
response.setHeader("Cache-Control", "No-store");
response.setDateHeader("Expires", 0);
String serverHost = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
String basePath = serverHost + request.getContextPath();
request.setAttribute("basePath", basePath);
%>
<!DOCTYPE html>
<html>
......@@ -37,6 +41,9 @@
<![endif]-->
<title><c:out value="${f:systemParameter('SYSTEM.NAME')}" /></title>
<x:link href="/themes/font-face.css"/>
<script type="application/javascript">
var web_app = {name: '${basePath}'};
</script>
<x:base include="base" />
<x:link href="/login/css/login.css"/>
<x:link href="/themes/extend.css"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment