wip: cart
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<FullscreenViewport v-if="platform === 'ios' || platform === 'android'"/>
|
||||
<router-view />
|
||||
<router-view/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {onMounted, ref, watch} from "vue";
|
||||
import { useWebAppViewport, useBackButton } from 'vue-tg';
|
||||
import { useMiniApp, FullscreenViewport } from 'vue-tg';
|
||||
import {useWebAppViewport, useBackButton} from 'vue-tg';
|
||||
import {useMiniApp, FullscreenViewport} from 'vue-tg';
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
|
||||
const tg = useMiniApp();
|
||||
const platform = ref();
|
||||
platform.value = tg.platform;
|
||||
|
||||
const { disableVerticalSwipes } = useWebAppViewport();
|
||||
const {disableVerticalSwipes} = useWebAppViewport();
|
||||
disableVerticalSwipes();
|
||||
|
||||
const router = useRouter();
|
||||
@@ -32,6 +32,6 @@ watch(
|
||||
backButton.onClick?.(() => router.back());
|
||||
}
|
||||
},
|
||||
{ immediate: true, deep: true }
|
||||
{immediate: true, deep: true}
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user