feat(admin): 新增弹框是否允许在新标签页中打开 add option to open iframe in new tab
- Add 'iframe_open_top' configuration to admin site settings - Implement functionality to open iframe in new tab if configured - Update admin layout to include new configuration option - Modify easy-admin.js to support new tab opening for iframes Signed-off-by: wolfcode <37436228+wolf-leo@users.noreply.github.com>
This commit is contained in:
@@ -977,6 +977,14 @@ define(["jquery", "tableSelect"], function ($, tableSelect) {
|
||||
before: function () {
|
||||
},
|
||||
success: function (layero, index) {
|
||||
if (window.CONFIG.IFRAME_OPEN_TOP == '1') {
|
||||
let _winTopBtn = `
|
||||
<span class="_winTopBtn layui-btn layui-btn-primary layui-btn-xs"
|
||||
style="position: absolute;top: 14px;right: 120px;color: #fff;border-color: #fff;" onclick="window.open(location.href)">
|
||||
新标签页打开
|
||||
</span>`
|
||||
$('.layui-layer-iframe').append(_winTopBtn)
|
||||
}
|
||||
},
|
||||
end: function () {
|
||||
index = null
|
||||
|
||||
Reference in New Issue
Block a user