Obtaining the user's rights after a successful vue login displays different pages

the background management system that uses vue successfully logs in to obtain user rights. The backend returns role field 1 on behalf of superuser 2 on behalf of ordinary users. How to assign different routes according to this power is to display different views according to power after successful login. Someone asks for help

Sep.30,2021
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-49f3a4d-1287f.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-49f3a4d-1287f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?