diff --git a/ruoyi-admin/src/main/resources/static/css/style.css b/ruoyi-admin/src/main/resources/static/css/style.css index bff2cd71..37ccc88c 100644 --- a/ruoyi-admin/src/main/resources/static/css/style.css +++ b/ruoyi-admin/src/main/resources/static/css/style.css @@ -444,7 +444,7 @@ body.canvas-menu.mini-navbar #page-wrapper, body.canvas-menu.mini-navbar .footer body.fixed-sidebar .navbar-static-side, body.canvas-menu .navbar-static-side { position: fixed; - width: 220px; + width: 200px; z-index: 2001; height: 100%; } @@ -3166,7 +3166,7 @@ video { #page-wrapper { padding: 0 15px; position: inherit; - margin: 0 0 0 220px; + margin: 0 0 0 200px; } .title-action { diff --git a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js index 16459e04..184c05e5 100644 --- a/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js +++ b/ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js @@ -668,6 +668,10 @@ openTab: function (title, url) { createMenuItem(url, title); }, + // 关闭选项卡 + closeTab: function () { + closeItem(); + }, // 禁用按钮 disable: function() { var doc = window.top == window.parent ? window.document : window.parent.document; @@ -972,7 +976,7 @@ } else if ($contentWindow.$.table._option.type == table_type.bootstrapTreeTable) { $contentWindow.$.treeTable.refresh(); } - closeItem(); + $.modal.closeTab(); } else if (result.code == web_status.WARNING) { $.modal.alertWarning(result.msg) } else {