<template>
  <div id="app">
    <div id="nav">
      <div>
        <a :href=this.$store.state.redirecturl>返回首页</a> 
      </div>
      <!-- <router-link to="/book">书籍</router-link> | -->
      <h3>{{this.$store.state.textBookData.textBooksName}}</h3>
      <div></div>
      <!-- <router-link to="/about">About</router-link>  -->
    </div>
    <router-view/>
  </div>
</template>


<script>



export default{


  data(){

    return{
    }
  },


  

  mounted(){

  }



}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
}

#nav {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
