diff --git a/.env.example b/.env.example deleted file mode 100644 index 32b7f4d..0000000 --- a/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -# آدرس مستقیم فایل APK (اختیاری). اگر خالی باشد از فایل public/apk/Garoosi.apk استفاده می‌شود. -# VITE_APK_URL=https://example.com/path/to/Garoosi.apk diff --git a/src/views/login/components/Login.vue b/src/views/login/components/Login.vue index 5c1a72d..1ba5868 100644 --- a/src/views/login/components/Login.vue +++ b/src/views/login/components/Login.vue @@ -119,11 +119,9 @@
دانلود اپ اندروید
@@ -226,6 +224,7 @@ import { useUserStore } from '@/store/userStore' import { useWalletStore } from '@/store/walletStore' import { fingerPosition, setTruth } from '@/main' import {useConfigStore} from "@/store/configStore"; +import {getConfigApp} from "@/utils/config"; import BasicActionSheet from "@/components/BasicPacks/BasicActionSheet.vue"; import {getConfig} from "@/api/config"; import shareAppleIcon from '@/assets/img/share-apple.png' @@ -376,13 +375,6 @@ const goToEducate = () => { router.push({ name: "educate" }) } -const apkDownloadUrl = computed(() => { - const envUrl = import.meta.env.VITE_APK_URL - if (envUrl) return envUrl - const base = (import.meta.env.BASE_URL || '/').replace(/\/?$/, '/') - return `${window.location.origin}${base}apk/Garoosi.apk` -}) - const showPWAInstallGuide = ref(false) async function installWebApp() { showPWAInstallGuide.value = true