Преглед изворни кода

fix:修复单点多菜单页面时其他菜单高亮

韩帛霖 пре 1 година
родитељ
комит
6a3a46ae80
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      zkqy-ui/src/layout/components/Sidebar/SidebarItem.vue

+ 2 - 1
zkqy-ui/src/layout/components/Sidebar/SidebarItem.vue

@@ -107,7 +107,7 @@ export default {
             let baseURL = this.basePath
             Object.keys(query).forEach((key, index) => {
               if (index == 0) {
-                baseURL += '?' + key + '=' + query[key];
+                baseURL += '&' + key + '=' + query[key];
               } else {
                 baseURL += '&' + key + '=' + query[key];
               }
@@ -115,6 +115,7 @@ export default {
             return baseURL;
           }
         }
+        console.log(this.basePath)
         return this.basePath
       }