cookie.set('token', token); this.$router.push({name: 'home'});. Then in Navigation.vue.js I check if the cookie exists: <li class=”nav-item” v-if=”!cookie”>
確定! 回上一頁