tookit / vue-material-admin

A vue material design admin template

Home Page:http://vma.isocked.com/#/dashboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The breadcrumb isn't working properly

GabrielSchenato opened this issue · comments

Hi, the breadcrumb isn't working properly, and some things are different from the demo.
capturar

breadcrumb?

Yes from this component PageHeader.vue , you can see in my picture

Is not like yours
captura de tela de 2019-02-28 11-35-02

I got it, I guess the your route trigger the issue

but I cloned your project and did not modify anything and it did not work either. And some things are different from the demo here http://vma.isocked.com/#/dashboard

Can you help me?

change
breadcrumbs.push(item.title); breadcrumbs.push(child.title);
to
breadcrumbs.push({text: item.title}); breadcrumbs.push({text: child.title});

确实有问题 跟Demo展示的不一样

Thanks @mjsunny, but I can't put a icon like the demo

If you want to put a icon then revert everything back to original PageHeader.vue file and then replace <v-breadcrumbs> tag to

<v-breadcrumbs divider="-">
    <v-breadcrumbs-item><v-icon>home</v-icon></v-breadcrumbs-item>                               
    <v-breadcrumbs-item v-for="(breadcrumb, index) in breadcrumbs" :key="index">{{breadcrumbs[index]}}</v-breadcrumbs-item>
</v-breadcrumbs>

Oh really thank you @mjsunny, I need to ask something, if you refresh the page in the route http://localhost:8000/#/login for exemple it's load the Dashboard first instead of the Login page after some seconds the Login page appears

Oh really thank you @mjsunny, I need to ask something, if you refresh the page in the route http://localhost:8000/#/login for exemple it's load the Dashboard first instead of the Login page after some seconds the Login page appears

Set a timeout then call the router programmatically. https://router.vuejs.org/guide/essentials/navigation.html