Does vue router's global navigation guard have to be nested?

I"ve seen a lot of writing for vuerouter beforeEach, and it seems to be all if nesting. Can access control be achieved without if nesting?

Mar.30,2022

you can store your permission information in meta, and then take it out and use it in beforeEach.

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-1b3d784-2c3a2.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-1b3d784-2c3a2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?