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
Menu