From cfc1f65e3e91838fe312244ca247ce50a3c222b4 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Mon, 11 Dec 2023 01:08:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E5=AE=8C=E5=96=84=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/tp-text.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/post/tp-text.vue b/src/components/post/tp-text.vue index 470243e2..f11f25f9 100644 --- a/src/components/post/tp-text.vue +++ b/src/components/post/tp-text.vue @@ -154,9 +154,9 @@ async function toLink() { function isMysAct(url: string): boolean { const link = new URL(url); - const prefix = ["https://act.mihoyo.com/", "https://mhyurl.cn", "https://webstatic.mihoyo.com"]; - if (prefix.includes(link.origin)) { - if (link.origin == "https://webstatic.mihoyo.com") { + const prefix = ["act.mihoyo.com", "mhyurl.cn", "webstatic.mihoyo.com", "qaa.miyoushe.com"]; + if (prefix.includes(link.hostname)) { + if (link.hostname == "webstatic.mihoyo.com") { return link.pathname.includes("event"); } return true;