Files
lanecarford_front/src/App.vue

65 lines
1.3 KiB
Vue
Raw Normal View History

2025-10-09 09:29:36 +08:00
<template>
2025-10-23 14:05:42 +08:00
<RouteCache />
2025-10-23 14:06:09 +08:00
<div id="loading" v-if="loading">
2025-10-23 14:05:42 +08:00
<van-loading size="10rem" color="#0094ff"/>
</div>
2025-10-09 09:29:36 +08:00
</template>
2025-10-21 11:21:15 +08:00
<script setup lang="ts">
import RouteCache from '@/components/RouteCache.vue'
2025-10-23 14:05:42 +08:00
import { computed } from 'vue'
import { useOverallStore } from '@/stores'
const overallStore = useOverallStore()
const loading = computed(() => overallStore.loading)
2025-10-21 11:21:15 +08:00
</script>
2025-10-09 09:29:36 +08:00
<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; */
}
2025-10-23 14:05:42 +08:00
#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;
}
2025-10-09 09:29:36 +08:00
</style>