[Vuejs]-How to make routing differently than is now vuejs routing

0👍

Answer is simple. You can add flag into ‘/profile/addres-list’ route meta tag and check it if it is true/ True means we found the needed page

{
                path: 'address-list',
                display: 'Addresses',
                view: 'profile/addresses/address-list',
                meta: { auth: true, title: 'Addresses' }
            },

into this (difference in the last line)

{
                path: 'address-list',
                display: 'Addresses',
                view: 'profile/addresses/address-list',
                meta: { auth: true, isAddressList: true }
            }

and change

<template v-if="route.display === route.meta.title &&$auth.user.address_count>0">
                            

to this

<template v-if="route.meta.isAddressList && $auth.user.address_count>0">

Leave a comment