From c6bf2dbc78394a8e927b5e4dd7c20910f96ab627 Mon Sep 17 00:00:00 2001 From: nicejade Date: Thu, 3 May 2018 22:24:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20add=20rel=3Dnoopener=20for=20target=3D'?= =?UTF-8?q?=5Fblank'=20=F0=9F=98=8A=20=20#24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AdsPosition.vue | 2 +- src/components/Contact.vue | 1 + src/components/linksList/LinkItem.vue | 13 ++++++++----- src/partials/FooterNav.vue | 11 ++++++++--- src/views/manage/Adverts.vue | 2 +- src/views/manage/Links.vue | 3 ++- 6 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/components/AdsPosition.vue b/src/components/AdsPosition.vue index 96ba5cb1..eeb860b1 100644 --- a/src/components/AdsPosition.vue +++ b/src/components/AdsPosition.vue @@ -4,7 +4,7 @@ - + diff --git a/src/components/Contact.vue b/src/components/Contact.vue index 55b0dc6c..610b6339 100644 --- a/src/components/Contact.vue +++ b/src/components/Contact.vue @@ -5,6 +5,7 @@ :href="item.path + item.name" :title="item.title" target="_blank" + rel="noreferrer noopener" :class="item.class" class="social-btn"> diff --git a/src/components/linksList/LinkItem.vue b/src/components/linksList/LinkItem.vue index c467813d..0fa5a841 100644 --- a/src/components/linksList/LinkItem.vue +++ b/src/components/linksList/LinkItem.vue @@ -5,19 +5,22 @@ @click.stop.prevent="onThemeClick(item.theme)"> {{ fillThemeName(item.classify, item.theme) }} - + {{ item.createdBy || '' }} {{ item.created | dateOffset }} + :href="getTagPath(iitem)" + target="_blank" rel="noreferrer noopener"> {{ iitem }}

- {{ item.title }} + + {{ item.title }} +

{{ item.abstract || $util.interceptString(item.desc) }} @@ -30,7 +33,7 @@ -
+