<template>
  <div id="app">
    <el-row v-if="toLogin()">
      <router-view />
    </el-row>
    <el-row v-else>
      <main-layout></main-layout>
    </el-row>
  </div>
</template>
<script>
import mainLayout from '@/layout/main-layout.vue';
export default {
  name: 'app',
  components: {
    mainLayout,
  },
  data: () => ({}),
  created() {},
  methods: {
    toLogin() {
      let route = window.location.pathname;
      console.log(route);

      return route.includes('login');
    },
  },
};
</script>

<style lang="less">
html {
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  margin: 0;
  overflow-x: hidden;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
</style>
