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

pull/139/MERGE
RuoYi 2019-10-31 15:25:23 +08:00
parent b1b0542f72
commit 6ad6f90968
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}