[Vuejs]-Vuejs disabled nav and sidebar

0👍

You have a typo: $router.name should be $route.name

<headpart class="headdart" v-if="['login'].indexOf($router.name) > -1"></headpart>

Also, for what it’s worth, I think this works too:

<headpart class="headpart" v-if="$route.name != 'login' "></headpart>

Leave a comment