From b2782dd71eb39df8df1cb09740fc91fd1d8e1023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=88=E5=93=88=E5=93=88?= <2867557054@qq.com> Date: Sat, 22 May 2021 10:00:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=B8=BAlinks=E9=85=8D=E7=BD=AE=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0target=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E6=96=B0=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80link=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index f24d938..0633765 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -454,7 +454,7 @@ layui.define(['message', 'table', 'jquery', 'element', 'yaml', 'form', 'tab', 'm function buildLinkHtml() { var links = ""; $.each(config.links, function(i, value) { - links += '' + + links += '' + ' ' + value.title + '' }) -- Gitee From 838e525fe632b3192fc39b564ba96abdc53e6230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=93=88=E5=93=88=E5=93=88?= <2867557054@qq.com> Date: Sat, 22 May 2021 10:02:40 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=20component/pear/module/admin.js.=20?= =?UTF-8?q?=E4=B8=BArender.links=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B9target=E3=80=82=E5=BD=93target=E8=A2=AB=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=94=E4=B8=8D=E4=B8=BAfalse=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=99=E4=B8=BA=E5=AF=B9=E5=BA=94link=E5=A2=9E=E5=8A=A0targe?= =?UTF-8?q?t=E5=B1=9E=E6=80=A7=EF=BC=8C=E5=AE=9E=E7=8E=B0=E6=96=B0?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/admin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/component/pear/module/admin.js b/component/pear/module/admin.js index 0633765..b9c937e 100644 --- a/component/pear/module/admin.js +++ b/component/pear/module/admin.js @@ -454,6 +454,7 @@ layui.define(['message', 'table', 'jquery', 'element', 'yaml', 'form', 'tab', 'm function buildLinkHtml() { var links = ""; $.each(config.links, function(i, value) { + // value.target 存在,则为新窗口打开,增加 target="_blank" 属性 links += '' + ' ' + value.title + '' -- Gitee