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'