Vue routing permissions

The

problem is:
/ / parent route
{
path:"/a",
computends:a,
meta: {auth:"a"}
}
/ / Child route
{
path:"/a/b"
computends:b,
}
ask
when the parent route has permission, the child route can enter a route such as / Ab without setting meta,

.
Mar.02,2021

does not block globally. Write permission check under that route


process in [router.beforeEach ((to, from, next) = > {]:
router.beforeEach ((to, from, next) = > {

let ps = to.matched
let meta = null
for (let p of ps) {
  if (p.meta) {
    meta = p.meta //meta
  }
}
// meta
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37568-2c091.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37568-2c091.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?