mirror of https://gitee.com/y_project/RuoYi.git
解码url,防止中文导致页面不能加载问题
parent
b1b0542f72
commit
6ad6f90968
|
@ -283,7 +283,7 @@ $(function() {
|
|||
var hash = location.hash;
|
||||
if (hash !== '') {
|
||||
var url = hash.substring(1, hash.length);
|
||||
$('a[href$="' + url + '"]').click();
|
||||
$('a[href$="' + decodeURI(url) + '"]').click();
|
||||
if($.inArray(url, excludesUrl)){
|
||||
$('a[href$="' + url + '"]').parent("li").addClass("selected").parents("li").addClass("active").end().parents("ul").addClass("in");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue