From 7e123639763384280e1432e88eb6b8d5eeeb2843 Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Tue, 6 Jan 2026 22:41:33 -0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 +++++++--- src/utils/constant.ts | 9 ++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0a4bcf4..43cd0d1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,9 +7,13 @@ position="top-center" :toast-options="{ style: { - background: '#000000', - color: '#ffffff', - border: '1px solid rgba(255, 255, 255, 0.1)', + background: '#ddd', + color: '#000', + border: '1px solid rgba(255, 255, 255)', + }, + classes: { + title: 'text-[20px] font-bold', + toast: 'rounded-[20px]', // 顺便统一一下你 Dialog 的圆角风格 }, }" /> diff --git a/src/utils/constant.ts b/src/utils/constant.ts index 492edaf..dad7cb4 100644 --- a/src/utils/constant.ts +++ b/src/utils/constant.ts @@ -1,4 +1,7 @@ -export const downLoadAndroid = 'https://h.hifastapp.com/download/app-arm64-v8a-release.apk' -export const downLoadMac = 'https://h.hifastapp.com/download/HiFastVPN-1.0.0+100-macos.dmg' -export const downLoadWin = 'https://h.hifastapp.com/download/HiFastVPN-0.0.2-windows-setup.exe' +// utils/constant.ts +const BASE_URL = window.location.origin // 自动获取当前域名 + +export const downLoadAndroid = `${BASE_URL}/download/app-arm64-v8a-release.apk` +export const downLoadMac = `${BASE_URL}/download/HiFastVPN-1.0.0+100-macos.dmg` +export const downLoadWin = `${BASE_URL}/download/HiFastVPN-0.0.2-windows-setup.exe` export const downLoadIos = 'https://apps.apple.com/us/app/hi%E5%BF%ABvpn/id6755683167'