From c779fa0dcab2b8045707958903c45da783f4da1a Mon Sep 17 00:00:00 2001 From: yml2213 Date: Wed, 5 Aug 2026 15:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=89=8D=E7=AB=AF=E7=A1=AC?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=9F=9F=E5=90=8D,=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/components/PaymentConfigDialog.vue | 12 ++++++------ .../features/guide/views/MobileAddHomeGuideView.vue | 10 ++-------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/frontend/src/features/admin/components/PaymentConfigDialog.vue b/frontend/src/features/admin/components/PaymentConfigDialog.vue index c9552ad..afdfe56 100644 --- a/frontend/src/features/admin/components/PaymentConfigDialog.vue +++ b/frontend/src/features/admin/components/PaymentConfigDialog.vue @@ -45,16 +45,16 @@ const lakalaGateways: Record = { } const defaultNotifyURLs: Record = { - leshua: 'https://hao858.com/api/payments/leshua/notify', - lakala: 'https://hao858.com/api/payments/lakala/notify', - shuncheng: 'https://hao858.com/api/payments/shuncheng/notify', + leshua: `${window.location.origin}/api/payments/leshua/notify`, + lakala: `${window.location.origin}/api/payments/lakala/notify`, + shuncheng: `${window.location.origin}/api/payments/shuncheng/notify`, mock: '', } const defaultJumpURLs: Record = { - leshua: 'https://hao858.com/orders', - lakala: 'https://hao858.com/orders', - shuncheng: 'https://hao858.com/orders', + leshua: `${window.location.origin}/orders`, + lakala: `${window.location.origin}/orders`, + shuncheng: `${window.location.origin}/orders`, mock: '', } diff --git a/frontend/src/features/guide/views/MobileAddHomeGuideView.vue b/frontend/src/features/guide/views/MobileAddHomeGuideView.vue index 206d6f9..0f00e69 100644 --- a/frontend/src/features/guide/views/MobileAddHomeGuideView.vue +++ b/frontend/src/features/guide/views/MobileAddHomeGuideView.vue @@ -6,15 +6,9 @@ import shareMenuIcon from '@/assets/share-menu-icon.png' const router = useRouter() -const homeUrl = computed(() => { - if (typeof window === 'undefined') return 'https://hao858.com/m' - return `${window.location.origin}/m` -}) +const homeUrl = computed(() => `${window.location.origin}/m`) -const displayHost = computed(() => { - if (typeof window === 'undefined') return 'hao858.com' - return window.location.host || 'hao858.com' -}) +const displayHost = computed(() => window.location.host) async function copyHomeUrl() { try {