From dd58e3ce55524e0ab5def325702a5fc4e21b7b1d Mon Sep 17 00:00:00 2001 From: speakeloudest Date: Wed, 25 Feb 2026 05:07:16 +0200 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8B=E8=BD=BD=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Help/index.vue | 64 ++++++++++--------- src/pages/Home/components/DownloadButton.vue | 66 +++++++++++--------- 2 files changed, 71 insertions(+), 59 deletions(-) diff --git a/src/pages/Help/index.vue b/src/pages/Help/index.vue index 6ccb40c..708e4ab 100644 --- a/src/pages/Help/index.vue +++ b/src/pages/Help/index.vue @@ -132,35 +132,41 @@ import FAQAccordion from './FAQAccordion/index.vue' import { Button } from '@/components/ui/button' import { downLoadIos } from '@/utils/constant.ts' -const downLoadWin = ref('') -const downLoadMac = ref('') -const downLoadAndroid = ref('') -request - .get('/api/v1/common/client/download', { - // invite_code: getAllQueryString('ic'), - platform: 'mac', - }) - .then((res) => { - downLoadMac.value = res.url - }) - -request - .get('/api/v1/common/client/download', { - // invite_code: getAllQueryString('ic'), - platform: 'windows', - }) - .then((res) => { - downLoadWin.value = res.url - }) - -request - .get('/api/v1/common/client/download', { - // invite_code: getAllQueryString('ic'), - platform: 'android', - }) - .then((res) => { - downLoadAndroid.value = res.url - }) +const downLoadWin = ref( + 'https://api.hifast.biz/v1/common/client/download/file/Hi快VPN-windows-1.0.0.exe', +) +const downLoadMac = ref( + 'https://api.hifast.biz/v1/common/client/download/file/Hi快VPN-mac-1.0.0.dmg', +) +const downLoadAndroid = ref( + 'https://api.hifast.biz/v1/common/client/download/file/Hi快VPN-android-1.0.0.apk', +) +// request +// .get('/api/v1/common/client/download', { +// // invite_code: getAllQueryString('ic'), +// platform: 'mac', +// }) +// .then((res) => { +// downLoadMac.value = res.url +// }) +// +// request +// .get('/api/v1/common/client/download', { +// // invite_code: getAllQueryString('ic'), +// platform: 'windows', +// }) +// .then((res) => { +// downLoadWin.value = res.url +// }) +// +// request +// .get('/api/v1/common/client/download', { +// // invite_code: getAllQueryString('ic'), +// platform: 'android', +// }) +// .then((res) => { +// downLoadAndroid.value = res.url +// }) const activeIndex = ref(0) diff --git a/src/pages/Home/components/DownloadButton.vue b/src/pages/Home/components/DownloadButton.vue index 80b729b..1416c0c 100644 --- a/src/pages/Home/components/DownloadButton.vue +++ b/src/pages/Home/components/DownloadButton.vue @@ -34,36 +34,42 @@ import Icon4 from './Group 108.svg?component' import { ref, computed } from 'vue' import request from '@/utils/request' import { getAllQueryString } from '@/utils/url-utils.ts' -const downLoadWin = ref('') -const downLoadMac = ref('') -const downLoadAndroid = ref('') -request - .get('/api/v1/common/client/download', { - // invite_code: getAllQueryString('ic'), - platform: 'mac', - }) - .then((res) => { - downLoadMac.value = res.url - }) - -request - .get('/api/v1/common/client/download', { - // invite_code: getAllQueryString('ic'), - platform: 'windows', - }) - .then((res) => { - downLoadWin.value = res.url - }) - -request - .get('/api/v1/common/client/download', { - // invite_code: getAllQueryString('ic'), - platform: 'android', - }) - .then((res) => { - downLoadAndroid.value = res.url - // console.log(downLoadAndroid.value) - }) +const downLoadWin = ref( + 'https://api.hifast.biz/v1/common/client/download/file/Hi快VPN-windows-1.0.0.exe', +) +const downLoadMac = ref( + 'https://api.hifast.biz/v1/common/client/download/file/Hi快VPN-mac-1.0.0.dmg', +) +const downLoadAndroid = ref( + 'https://api.hifast.biz/v1/common/client/download/file/Hi快VPN-android-1.0.0.apk', +) +// request +// .get('/api/v1/common/client/download', { +// // invite_code: getAllQueryString('ic'), +// platform: 'mac', +// }) +// .then((res) => { +// downLoadMac.value = res.url +// }) +// +// request +// .get('/api/v1/common/client/download', { +// // invite_code: getAllQueryString('ic'), +// platform: 'windows', +// }) +// .then((res) => { +// downLoadWin.value = res.url +// }) +// +// request +// .get('/api/v1/common/client/download', { +// // invite_code: getAllQueryString('ic'), +// platform: 'android', +// }) +// .then((res) => { +// downLoadAndroid.value = res.url +// // console.log(downLoadAndroid.value) +// }) // 定义下载链接数据 const downloadLinks = computed(() => {