Is there any way to reload the sidebar component from other vue component ? I got a menuLabel at the sidebar which will show the number of order in pending status. So I want to update the sidebar menuLabel whenever I change the status from pending to others.
For example, When I click submit or some button in SalesOrder.vue, I want to reload the sidebar.
Sample component code:
export const Routes = [
{
path: '/admin',
components: { default: ThemeContent, header: ThemeHeader, sidebar: ThemeSidebar, footer: ThemeFooter },
children: [
{ path: 'dashboard', component: DashboardAdmin },
{ path: 'salesorder', component: SalesOrder},
],
meta: { requiresAdmin: true }
},