<template>
  <div id="app">
    <router-view v-if="alive" />
  </div>
</template>
<script>
export default {
  name: 'App',
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      alive: true,
    };
  },
  methods: {
    reload() {
      this.alive = false;
      this.$nextTick(() => {
        this.alive = true;
      });
    },
  },
};
</script>
<style lang="less">
body {
  margin: 0;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
p {
  padding: 0;
  margin: 0;
}
</style>
