<!--
 * @Author: Jason Liu
 * @Date: 2022-03-10 09:45:34
 * @Desc: 
-->
<template>
  <div id="app" :class="['app', appType]">
    <!--<router-view v-if="isRouterAlive"></router-view>-->
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      themes: "winning_60",
      appType: undefined,
      isRouterAlive: true,
    };
  },
  created() {
    document.body.className = this.themes;
  },
  mounted() {},
  methods: {
    /**
     * @descripttion: 页面重载
     * @return {*}
     */
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      });
    },
  },
};
</script>
