App.vue 1.08 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%;
  // 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>