Browse Source

右键菜单选择器更换

RuoYi 5 years ago
parent
commit
54e05bae60
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ruoyi-admin/src/main/resources/static/ruoyi/index.js

+ 2 - 2
ruoyi-admin/src/main/resources/static/ruoyi/index.js

@@ -460,7 +460,7 @@ $(function() {
     
     // 右键菜单实现
     $.contextMenu({
-        selector: ".page-tabs-content",
+        selector: ".menuTab",
         trigger: 'right',
         autoHide: true,
         items: {
@@ -468,7 +468,7 @@ $(function() {
                 name: "关闭当前",
                 icon: "fa-close",
                 callback: function(key, opt) {
-                    tabCloseCurrent();
+                	opt.$trigger.find('i').trigger("click");
                 }
             },
             "close_other": {