From 386b8d4c5a4beca107c585fdddee2355ad06fa70 Mon Sep 17 00:00:00 2001 From: safavimohadeseh78 Date: Sun, 15 Feb 2026 10:35:20 +0330 Subject: [PATCH] add install button for garoosi --- .env.example | 2 -- src/views/login/components/Login.vue | 12 ++---------- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 .env.example 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