Pārlūkot izejas kodu

右键菜单选择器更换

RuoYi 5 gadi atpakaļ
vecāks
revīzija
54e05bae60

+ 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": {