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">
- [Vuejs]-Await api call responding after unmounting of component | vue.js
- [Vuejs]-Vue js – parsing data from clipbord (excel)
Source:stackexchange.com