解码url,防止中文导致页面不能加载问题

master
RuoYi 5 years ago committed by Limy
parent 51cff4575a
commit 34edf8456a

@ -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…
Cancel
Save