From d5d82f9d6362f368ba6ad8ad4ba860984a5f6063 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Wed, 4 Dec 2024 03:21:55 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E8=A7=A3=E7=A0=81=E8=B4=AD?= =?UTF-8?q?=E4=B9=B0=E9=93=BE=E6=8E=A5=E4=BB=A5=E7=A1=AE=E4=BF=9D=E6=AD=A3?= =?UTF-8?q?=E7=A1=AE=E6=89=93=E5=BC=80=EF=BC=8C=E6=94=AF=E6=8C=81=E5=9C=A8?= =?UTF-8?q?=E6=96=B0=E6=A0=87=E7=AD=BE=E9=A1=B5=E4=B8=AD=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/server-detail/server-info-box.vue | 3 ++- src/views/components/server-list/server-list-item-bill.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/components/server-detail/server-info-box.vue b/src/views/components/server-detail/server-info-box.vue index ac82951..06f9455 100644 --- a/src/views/components/server-detail/server-info-box.vue +++ b/src/views/components/server-detail/server-info-box.vue @@ -197,7 +197,8 @@ const buyBtnText = config.nazhua.buyBtnText || '购买'; const showBuyBtn = computed(() => !!props.info?.PublicNote?.customData?.orderLink); function toBuy() { - window.open(props.info?.PublicNote?.customData?.orderLink); + const decodeUrl = decodeURIComponent(props.info?.PublicNote?.customData?.orderLink); + window.open(decodeUrl, '_blank'); } const { diff --git a/src/views/components/server-list/server-list-item-bill.vue b/src/views/components/server-list/server-list-item-bill.vue index 236e2db..d7acc40 100644 --- a/src/views/components/server-list/server-list-item-bill.vue +++ b/src/views/components/server-list/server-list-item-bill.vue @@ -88,7 +88,8 @@ const buyBtnText = config.nazhua.buyBtnText || '购买'; const showBuyBtn = computed(() => !!props.info?.PublicNote?.customData?.orderLink); function toBuy() { - window.open(props.info?.PublicNote?.customData?.orderLink); + const decodeUrl = decodeURIComponent(props.info?.PublicNote?.customData?.orderLink); + window.open(decodeUrl, '_blank'); } const tagList = computed(() => {