Browse Source

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

RuoYi 5 years ago
parent
commit
6ad6f90968
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-admin/src/main/resources/templates/index.html

+ 1 - 1
ruoyi-admin/src/main/resources/templates/index.html

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