Skip to content
Snippets Groups Projects
Commit 19d2a7d6 authored by YongJae's avatar YongJae
Browse files

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

parent ff0dfadc
Branches
No related tags found
1 merge request!7Modify home.vue - router-link to=/BookSearchPage, and delete user
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<button v-on:click="gotoMyPage()">My Page</button> <button v-on:click="gotoMyPage()">My Page</button>
<button v-on:click="gotoBuyPage()">buy</button> <button v-on:click="gotoBuyPage()">buy</button>
<button v-on:click="gotoSellPage()">sell</button> <button v-on:click="gotoSellPage()">sell</button>
<button v-on:click="gotoBookIndexPage()">전공서적보기</button> <router-link to="/BookSearchPage">전공서적보기</router-link>
</nav> </nav>
<section class="section"> <section class="section">
<img src="../../static/img/img1.jpg" /> <img src="../../static/img/img1.jpg" />
...@@ -44,13 +44,7 @@ export default { ...@@ -44,13 +44,7 @@ export default {
// this.$http.get('/api/login/checkLogin', { // this.$http.get('/api/login/checkLogin', {
// user: this.user // user: this.user
// }) // })
console.log(user.isLoggedIn); //console.log(user.isLoggedIn);
if (user.isLoggedIn === false) {
alert("Log In First");
return 0;
} else {
return 1;
}
}, },
gotoMyPage() { gotoMyPage() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment