diff --git a/src/views/ShowFindPost.vue b/src/views/ShowFindPost.vue index daec719ddc746ba331be58e0af503f542e04795f..79204ccf7ab687891dd4756436d33311b2c65b36 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 1445fd7b4fa041815c35e00efc8e8aadb3de4cbd..b7b2b04d5c8091f2bf1f6ddf48197be8b7be771f 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}`)