Browse Source

Merge branch 'test' of http://192.168.2.236:10080/zhouna/AIPlatform into test

luolei 5 years ago
parent
commit
faed602253
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/js/index.js

+ 5 - 3
src/js/index.js

@@ -54,13 +54,15 @@ function initMenu(data,userInfo){
   $(".list-1").on("click",function(){
     // $(".list-1 .slide-up").removeClass('slide-up');
     // $(this).toggleClass('slide-up');
+    $(".list-1-show ul").slideUp();
+    $(".list-1").removeClass("list-1-show");
     const ulShow =  $(this).find("ul").css("display")
     if(ulShow == "none"){
-      $(this).removeClass("list-1-show")
+      //$(this).removeClass("list-1-show")
       $(this).addClass("list-1-show")
-    }else{
+    }/*else{
       $(this).removeClass("list-1-show")
-    }
+    }*/
     $(this).find("ul").slideToggle();
   });
 //收起菜单