master
wangbing 6 years ago
parent 004aa3e885
commit 971d644ccf

@ -89,9 +89,8 @@ public class GlobalController implements ErrorController {
} }
@RequestMapping("/") @RequestMapping("/")
public String home(HttpServletRequest request) { public String home() {
String contextPath = request.getContextPath(); return "forward:" + homePage;
return "forward:" + contextPath+ homePage;
} }
/** /**

@ -78,8 +78,49 @@
</div> </div>
<style> <style>
* { * {
padding: 0; -webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
margin: 0; margin: 0;
padding: 0;
font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
html, body {
width: 100%;
height: 100%;
}
a {
text-decoration: none;
outline: 0;
cursor: pointer;
-webkit-transition: color .2s ease;
transition: color .2s ease;
-webkit-text-decoration-skip: objects;
color: #757575;
}
a:active, a:hover {
outline-width: 0
}
a:hover {
opacity: 0.7;
}
a:active {
opacity: 0.9;
}
a:active, a:hover {
outline: 0;
text-decoration: none
}
a[disabled] {
color: #ccc;
cursor: not-allowed;
pointer-events: none
} }
body { body {
@ -219,7 +260,7 @@
this.addTab({ this.addTab({
title: '首页', title: '首页',
name: 'home', name: 'home',
url: '/${contextPath}/home.htm' url: '${contextPath}/home.htm'
}) })
}, },
collapseSwitch: function () { collapseSwitch: function () {

Loading…
Cancel
Save

Powered by TurnKey Linux.