App.vue 1.35 KB
<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%;
  overflow: hidden;
}
.warp-content {
  height: 100%;
}
* {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
  -webkit-tap-highlight-color: transparent !important;
}
#app {
  height: 100%;
  position: fixed;
  position: -ms-device-fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
}
.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;
}
button {
  border-radius: 0;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0);
}
</style>