From dc878d3fb765f11af6cbcf5499f0d49566301ee8 Mon Sep 17 00:00:00 2001 From: emm Date: Tue, 20 Sep 2022 22:53:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=B7=E6=B7=86=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index dbda193..5d0c08b 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -151,8 +151,10 @@ export default { } function coverLink(rawLink){ + let url = new URL(rawLink) maskDomain.value.forEach((mask) => { - rawLink = rawLink.replace(mask['raw'], mask['mask']) + if(url.host === mask['raw']) + rawLink = rawLink.replace(mask['raw'], mask['mask']) }) return rawLink; }