增加android下载链接
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m59s
All checks were successful
site-dist-deploy / build-and-deploy (push) Successful in 1m59s
This commit is contained in:
parent
0ed394ea67
commit
26bfcaa5f3
28
src/pages/AndroidDownload/index.vue
Normal file
28
src/pages/AndroidDownload/index.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="flex min-h-screen flex-col items-center justify-center bg-black p-6 text-white text-center">
|
||||
<div class="max-w-md">
|
||||
<p class="mb-4 text-xl font-medium">正在为您开始下载 Hi快VPN Android 版...</p>
|
||||
<p class="text-sm text-gray-400">
|
||||
如果下载没有自动开始,请
|
||||
<a :href="downloadUrl" class="text-[#a8ff53] underline ml-1 hover:text-[#c4ff8a]">点击此处手动下载</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
|
||||
const downloadUrl = 'https://api.hifast.biz/v1/common/client/download/file/Hi%E5%BF%ABVPN-android-1.0.0.apk'
|
||||
|
||||
onMounted(() => {
|
||||
// 延迟渲染后立即开始下载
|
||||
setTimeout(() => {
|
||||
window.location.href = downloadUrl
|
||||
}, 500)
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
/* 仅保持基础样式 */
|
||||
</style>
|
||||
@ -33,6 +33,11 @@ const router = createRouter({
|
||||
name: 'login-redirect',
|
||||
component: () => import('../pages/LoginRedirect/index.vue'),
|
||||
},
|
||||
{
|
||||
path: '/download/android',
|
||||
name: 'android-download',
|
||||
component: () => import('../pages/AndroidDownload/index.vue'),
|
||||
},
|
||||
{
|
||||
path: '/:pathMatch(.*)*',
|
||||
name: 'not-found',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user