From d741665faff6a2ea687f9cce47b31f11f02fbda7 Mon Sep 17 00:00:00 2001 From: Choejiwon <jiwon0929@ajou.ac.kr> Date: Wed, 11 Dec 2019 13:19:32 +0900 Subject: [PATCH] ShowPost --- src/views/ShowFindPost.vue | 2 +- src/views/ShowLostPost.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/ShowFindPost.vue b/src/views/ShowFindPost.vue index daec719..79204cc 100644 --- a/src/views/ShowFindPost.vue +++ b/src/views/ShowFindPost.vue @@ -216,7 +216,7 @@ <script> export default { created: function () { - if(this.$store.commit('getToken')){ + if(localStorage.getItem('token')){ const _id = this.$route.params._id; this.$http.get(`/finderboard/${_id}`) diff --git a/src/views/ShowLostPost.vue b/src/views/ShowLostPost.vue index 1445fd7..b7b2b04 100644 --- a/src/views/ShowLostPost.vue +++ b/src/views/ShowLostPost.vue @@ -212,7 +212,7 @@ <script> export default { created: function () { - if(this.$store.commit('getToken')){ + if(localStorage.getItem('token')){ const _id = this.$route.params._id; this.$http.get(`/losterboard/${_id}`) -- GitLab