<template>
  <div class="app">
    <div>
        <keep-alive>
          <router-view v-if="$route.meta.keepAlive"></router-view>
        </keep-alive>
        <router-view v-if="!$route.meta.keepAlive"></router-view>
    </div>

    <div>
      <div class="footer ng-scope" style="z-index: 10">
        <div class="footer-bd">
          <p>技术支持：{{settings.title}}</p>
          <p>
              <span> ©2021 </span>
              <img class="beian" src="./assets/images/beian_hashc9b229c96d.png" alt="">
              <a href="http://beian.miit.gov.cn/" target="_blank">
                网站备案：{{settings.beian}}
              </a>
           </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import { mapActions } from "vuex";
  import settings from '@/settings';
  export default {
    name: 'App',
    methods:{
      ...mapActions("user", ["loadTypeList"]),
    },
    data(){
      return {
        settings
      }
    },
    created(){
      this.loadTypeList()
    }
  }
</script>

<style lang="less">
html,
 body {
    padding: 0;
    line-height: 1.5;
    color: #333;
    font-family: "Arial";
    font-size: 14px;
    background-color: #efefef;
 }
  div {
      display: block;
  }
</style>
