新增菜单导航显示风格(default为左侧导航菜单,topnav为顶部导航菜单)

This commit is contained in:
RuoYi
2020-09-03 10:03:49 +08:00
parent 947120d136
commit bf1e52fd9d
14 changed files with 707 additions and 33 deletions

View File

@ -204,6 +204,10 @@
<a onclick="switchSkin()">
<i class="fa fa-dashboard"></i> 切换主题</a>
</li>
<li>
<a onclick="toggleMenu()">
<i class="fa fa-toggle-off"></i> 横向菜单</a>
</li>
<li class="divider"></li>
<li>
<a th:href="@{logout}">
@ -278,6 +282,7 @@ function resetPwd() {
var url = ctx + 'system/user/profile/resetPwd';
$.modal.open("重置密码", url, '770', '380');
}
/* 切换主题 */
function switchSkin() {
layer.open({
@ -289,6 +294,15 @@ function switchSkin() {
})
}
/* 切换菜单 */
function toggleMenu() {
$.modal.confirm("确认要切换成横向菜单吗?", function() {
$.get(ctx + 'system/menuStyle/topnav',function(result){
window.location.reload();
});
})
}
/** 刷新时访问路径页签 */
function applyPath(url) {
$('a[href$="' + decodeURI(url) + '"]').click();