If the front end in the development of the background only return role, do not return the permission of the case.

You need a front end to design permission management. The following is my plan and flow chart

Export default {// Super administrator superAdmin: {God:true, // God mode, no permission restricted}, // administrator admin: {// Route permission role: ['admin', 'super_editor'], // Menus :{edit:{show: true, // Whether to display handle: }, super_editor:{show: true, // Handle: false // Handle: false // handle: false // handle: false // handle: false // handle: false // handle: false // handle: false // handle: false // }}}, // Menus: {// menus: ['index'], // menus: {edit:{show: true, // if handle: false // if handle: false // if handle: false}}}, // Guest :{// Route permission role: [' index '], / / utilities menu access menus: [' list '],}, / / not login user anonymity: {}}Copy the code