新增客户端的导航页面配置项

This commit is contained in:
wanggeng 2021-11-17 23:24:27 +08:00
parent d09d393111
commit 4af0ebbd6b
3 changed files with 10 additions and 10 deletions

View File

@ -25,14 +25,14 @@ public class OAuth2ClientServerProperties {
* 访问地址
*/
private String url;
/**
* WebSocket 地址
*/
private String ws;
/**
* 系统主标题
*/
private String systemTitle;
/**
* 导航页面
*/
private String navPage;
/**
* 默认 index 页面
*/
@ -58,12 +58,12 @@ public class OAuth2ClientServerProperties {
this.url = url;
}
public String getWs() {
return ws == null ? "" : ws.trim();
public String getNavPage() {
return navPage == null ? "" : navPage.trim();
}
public void setWs(String ws) {
this.ws = ws;
public void setNavPage(String navPage) {
this.navPage = navPage;
}
public String getSystemTitle() {

View File

@ -61,7 +61,7 @@ public class IndexRouteController {
Map<String, Object> config = new HashMap<>();
// 先加载系统短标题没有加载主标题没有加载配置文件系统标题
mv.addObject("systemTitle", oAuth2ClientServerProperties.getSystemTitle());
mv.addObject("ws", oAuth2ClientServerProperties.getWs());
mv.addObject("navPage", oAuth2ClientServerProperties.getNavPage());
List<MenuDTO> menus;
if (StringUtils.equalsIgnoreCase(ISystemConstant.ADMIN, userInfoBO.getUserUsername())) {

View File

@ -42,7 +42,7 @@
</a>
</li>
<li class="layui-nav-item layui-hide-xs" lay-unselect>
<a href="index" title="首页">
<a th:href="@{${navPage}}" title="首页">
<i class="layui-icon layui-icon-website"></i>
</a>
</li>