Skip to content
Snippets Groups Projects

Modify home.vue - router-link to=/BookSearchPage, and delete user

Merged LeeYongJae requested to merge login into master
1 file
+ 2
8
Compare changes
  • Side-by-side
  • Inline
@@ -16,7 +16,7 @@
<button v-on:click="gotoMyPage()">My Page</button>
<button v-on:click="gotoBuyPage()">buy</button>
<button v-on:click="gotoSellPage()">sell</button>
<button v-on:click="gotoBookIndexPage()">전공서적보기</button>
<router-link to="/BookSearchPage">전공서적보기</router-link>
</nav>
<section class="section">
<img src="../../static/img/img1.jpg" />
@@ -44,13 +44,7 @@ export default {
// this.$http.get('/api/login/checkLogin', {
// user: this.user
// })
console.log(user.isLoggedIn);
if (user.isLoggedIn === false) {
alert("Log In First");
return 0;
} else {
return 1;
}
//console.log(user.isLoggedIn);
},
gotoMyPage() {
Loading