add install button for garoosi

This commit is contained in:
2026-02-15 10:35:20 +03:30
parent 60f15a01be
commit 386b8d4c5a
2 changed files with 2 additions and 12 deletions
+2 -10
View File
@@ -119,11 +119,9 @@
</BasicButton>
<div v-if="config.config.name === 'garoosi'" class="flex w-full gap-2 mb-2 mt-2">
<a
:href="apkDownloadUrl"
class="flex w-full items-center justify-center rounded py-2 text-white bg-primary border-none cursor-pointer no-underline"
download="Garoosi.apk"
target="_blank"
rel="noopener noreferrer"
href="https://garoosigholaktala.ir/apk/Garoosi.apk"
>
<div>دانلود اپ اندروید</div>
</a>
@@ -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