浏览代码

切换模式

luolei 4 年之前
父节点
当前提交
ff294b902e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/js/index.js

+ 3 - 3
src/js/index.js

@@ -31,7 +31,7 @@ $(function(){
   $("#changeWord").css("opacity",hasData('FUNC000002')?'1':'0.5').hover(function(){
     $(this).css("color","#777777")
   })
-  $(".header .title").click(function(){
+  $(".header .title .qiehuan").click(function(){
     getMenu();
     let txt = $(this).find('i').html()
     if(txt == '切换运行质控'){
@@ -45,10 +45,10 @@ $(function(){
     }
     $('#contentIframe').attr('src', $('#contentIframe').attr('src'));
   })
-  $(".header .title").mouseenter(function(){
+  $(".header .title .qiehuan").mouseenter(function(){
     $(this).find('img').attr('src',require('../images/qiehuan1.png'))
   })
-  $(".header .title").mouseleave(function(){
+  $(".header .title .qiehuan").mouseleave(function(){
     $(this).find('img').attr('src',require('../images/qiehuan2.png'))
   })
 });