Ver Fonte

fix:剑鱼导航栏无子菜单鼠标悬浮也改变主题色

yangfeng há 2 anos atrás
pai
commit
4b04bdda9e
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/web/staticres/public-pc/js/header-nav.js

+ 2 - 2
src/web/staticres/public-pc/js/header-nav.js

@@ -83,7 +83,7 @@ function trySelectNav (name) {
         'list', 'article/content', 'article/bdprivate', 'article/mailprivate',
         'article/bdcontent', '/jypc/toPushView', '/jyblog', '/dataExport',
         '/front/dataService.html', '/front/course', '/front/dataexport', '/orderPay',
-        '/big/page/', '/big/pc/page/', '/proposedProject', '/jyxspc',
+        '/big/page/', '/big/pc/page/', '/proposedProject', '/jyxspc'
       ]
       var isLightTheme = lightThemeRegs.some(function (v) {
         return $href.indexOf(v) !== -1
@@ -171,7 +171,7 @@ $(function(){
   var curTheme = getNavTheme()
   $("#public-nav .iner .jynav li").bind("mouseenter",function(){
     var l = $(this).find('.jynav-list').length;
-    if(l > 0){
+    if(l >= 0){
       //  隐藏消息悬浮窗
       $('#public-nav .iner .jynav li').find('.jy-list-msg').hide()
       $(this).find('.jynav-list').toggle()