mirror of https://gitee.com/y_project/RuoYi.git
修复点击左上角返回首页,浏览器刷新导致之前的菜单重新弹出;超出字符提示增加换行
parent
5c40ca6eb8
commit
3039601c42
|
@ -1175,6 +1175,8 @@ button.dim:active:before {
|
||||||
/* TOOLTIPS */
|
/* TOOLTIPS */
|
||||||
.tooltip-inner {
|
.tooltip-inner {
|
||||||
background-color: #2F4050;
|
background-color: #2F4050;
|
||||||
|
word-break: break-all;
|
||||||
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip.top .tooltip-arrow {
|
.tooltip.top .tooltip-arrow {
|
||||||
|
|
|
@ -383,6 +383,9 @@ $(function() {
|
||||||
var url = hash.substring(1, hash.length);
|
var url = hash.substring(1, hash.length);
|
||||||
applyPath(url);
|
applyPath(url);
|
||||||
} else {
|
} else {
|
||||||
|
if($.common.equals("history", mode)) {
|
||||||
|
storage.set('publicPath', "");
|
||||||
|
}
|
||||||
$(".navbar-toolbar li a").eq(0).click();
|
$(".navbar-toolbar li a").eq(0).click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,6 +323,13 @@ $(function() {
|
||||||
if ($.common.isNotEmpty(hash)) {
|
if ($.common.isNotEmpty(hash)) {
|
||||||
var url = hash.substring(1, hash.length);
|
var url = hash.substring(1, hash.length);
|
||||||
applyPath(url);
|
applyPath(url);
|
||||||
|
} else {
|
||||||
|
if($.common.equals("history", mode)) {
|
||||||
|
storage.set('publicPath', "");
|
||||||
|
} else {
|
||||||
|
var nowUrl = window.location.href;
|
||||||
|
window.location.href = nowUrl.substring(0, nowUrl.indexOf("#"))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue