<template>
  <div id="app">
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive" />
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive" />
  </div>
</template>
<script>
// import { getToken } from "@/util/auth";
export default {
  // created() {
  //   if (!getToken()) {
  //     this.$router.push({ name: "Login" });
  //   }
  // },
};
</script>

<style lang="scss"></style>
