Commit 6ad6f909 by RuoYi

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

parent b1b0542f
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment