From 70e63a6ef11145ff014e1f950f6b5dcd78ef13ee Mon Sep 17 00:00:00 2001 From: emm Date: Tue, 20 Sep 2022 22:53:13 +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(=E5=90=8C=E6=AD=A5=E6=9B=B4?= =?UTF-8?q?=E6=96=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DashBoard.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/DashBoard.vue b/src/components/DashBoard.vue index eeb0b67..8dcfa9a 100644 --- a/src/components/DashBoard.vue +++ b/src/components/DashBoard.vue @@ -160,7 +160,9 @@ export default { } function coverLink(rawLink){ + let url = new URL(rawLink) maskDomain.value.forEach((mask) => { + if(url.host === mask['raw']) rawLink = rawLink.replace(mask['raw'], mask['mask']) }) return rawLink;