App.vue
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
<Loading v-show="LOADING"></Loading>
<router-view v-slot="{ Component }" class="warp-content">
<keep-alive :include="['IndexPage']">
<component :is="Component" />
</keep-alive>
</router-view>
</template>
<script>
import { useStore } from "vuex";
import { computed } from "vue";
import Loading from "@/components/loading.vue";
export default {
name: "App",
components: {
Loading,
},
setup() {
const store = useStore();
const LOADING = computed(() => store.state.LOADING);
return {
LOADING,
};
},
};
</script>
<style lang="scss">
* {
padding: 0;
margin: 0;
}
html,
body {
height: 100%;
// min-height: 100%;
// min-height: 100%;
}
.warp-content {
height: 100%;
}
#app {
height: 100%;
// min-height: 100%;
}
.curr-marker {
display: inline-block;
width: 24px;
height: 24px;
background: url("./assets/images/curr-marker.gif") 0 0 no-repeat;
z-index: 999;
}
.van-dialog__confirm {
color: var(--base-color) !important;
}
.map-container {
width: 100%;
height: 100%;
position: fixed;
z-index: 100;
}
</style>