xinsi_book/src/App.vue

66 lines
907 B
Vue
Raw Normal View History

2024-06-11 08:14:31 +00:00
<template>
<div id="app">
<div id="nav">
2024-07-05 07:58:15 +00:00
<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> -->
2024-06-11 08:14:31 +00:00
</div>
<router-view/>
</div>
</template>
2024-07-05 07:58:15 +00:00
<script>
export default{
data(){
return{
}
},
mounted(){
}
}
</script>
2024-06-11 08:14:31 +00:00
<style>
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
2024-06-24 00:21:57 +00:00
/* text-align: center; */
2024-06-11 08:14:31 +00:00
color: #2c3e50;
}
#nav {
padding: 30px;
2024-07-05 07:58:15 +00:00
display: flex;
align-items: center;
justify-content: space-between;
2024-06-11 08:14:31 +00:00
}
#nav a {
font-weight: bold;
color: #2c3e50;
}
#nav a.router-link-exact-active {
color: #42b983;
}
</style>