修复点击左上角返回首页,浏览器刷新导致之前的菜单重新弹出;超出字符提示增加换行

pull/147/MERGE
Ricky 2020-09-11 10:42:54 +08:00
parent 5c40ca6eb8
commit 3039601c42
3 changed files with 12 additions and 0 deletions

View File

@ -1175,6 +1175,8 @@ button.dim:active:before {
/* TOOLTIPS */
.tooltip-inner {
background-color: #2F4050;
word-break: break-all;
overflow-wrap: break-word;
}
.tooltip.top .tooltip-arrow {

View File

@ -383,6 +383,9 @@ $(function() {
var url = hash.substring(1, hash.length);
applyPath(url);
} else {
if($.common.equals("history", mode)) {
storage.set('publicPath', "");
}
$(".navbar-toolbar li a").eq(0).click();
}
}

View File

@ -323,6 +323,13 @@ $(function() {
if ($.common.isNotEmpty(hash)) {
var url = hash.substring(1, hash.length);
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("#"))
}
}
}
});