<template>
  <div class="app-home">
    <div class="nav-list">
      <router-link class="nav-item" to="/?to=home">home</router-link>
      <router-link class="nav-item" to="/demo?from=home">demo</router-link>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },

  methods: {
    errorCaptured(...args) {
      // eslint-disable-next-line no-console
      console.log('errorCaptured', args)
    },
  },
}
</script>

<style lang="postcss">
@import 'src/style/abstract/index.css';

html,
body {
  /* each entry 应该单独定义 background-color, 避免和后续页面冲突 */
  background-color: white;
  font-size: 40px;
}

.app-home {
  /* your css */
  position: relative;
  padding-top: 80px;

  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: white;
    z-index: 99999;
  }

  .nav-item {
    height: 80px;
    line-height: 80px;
    flex: 1 0 25%;
    text-align: center;
    text-decoration: none;
    color: #1ccfc9;
  }
}
</style>
