Files
lanecarford_front/src/App.vue
X1627315083 02ae02acbf fix
2025-10-23 14:06:09 +08:00

65 lines
1.3 KiB
Vue

<template>
<RouteCache />
<div id="loading" v-if="loading">
<van-loading size="10rem" color="#0094ff"/>
</div>
</template>
<script setup lang="ts">
import RouteCache from '@/components/RouteCache.vue'
import { computed } from 'vue'
import { useOverallStore } from '@/stores'
const overallStore = useOverallStore()
const loading = computed(() => overallStore.loading)
</script>
<style lang="less">
#app{
font-size: 1.6rem;
box-sizing: border-box;
overscroll-behavior: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
*{
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
touch-action: pan-x pan-y; /* 允许单指平移(滚动)但禁用捏合缩放 */
}
// touch-action: none; /* 完全禁用浏览器默认触摸行为 */
// -webkit-user-select: none;
// -moz-user-select: none;
// -ms-user-select: none;
// user-select: none;
// -webkit-touch-callout: none;
@media (min-width: 1024px) {
width: 100vw;
height: 100vh;
position:relative
}
/* touch-action: none; */
}
#loading {
position: fixed;
z-index: 999999999;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
display: flex;
align-items: center;
justify-content: center;
}
</style>