luolei 4 years ago
parent
commit
8d456bb261
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/index.js

+ 1 - 1
src/js/index.js

@@ -42,7 +42,6 @@ $(function(){
     getMenu()
     getMenu()
   }
   }
   $(".header .title .qiehuan").click(function(){
   $(".header .title .qiehuan").click(function(){
-    getMenu();
     let txt = $(this).find('i').html()
     let txt = $(this).find('i').html()
     if(txt == '切换运行质控'){
     if(txt == '切换运行质控'){
       $(this).find('i').html('切换病案质控')
       $(this).find('i').html('切换病案质控')
@@ -54,6 +53,7 @@ $(function(){
       setCookie("isPlacefile",1)
       setCookie("isPlacefile",1)
     }
     }
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
+    getMenu();
   })
   })
   $(".header .title .qiehuan").mouseenter(function(){
   $(".header .title .qiehuan").mouseenter(function(){
     $(this).parent().find('img').attr('src',require('../images/qiehuan1.png'))
     $(this).parent().find('img').attr('src',require('../images/qiehuan1.png'))