diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/index.js b/ruoyi-admin/src/main/resources/static/ruoyi/index.js index b3eecd330..67d4af53d 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/index.js +++ b/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": {