Skip to content

Routing and Permissions

Static routes are registered at startup and are public by default. Remove the demo /test route before release. After login, the user store converts a flat backend menu into a tree and registers it below the main Layout.

FieldMeaning
id, parent_idTree relationships
path, name, titleRoute path, unique name, and label
componentPath relative to src/views/
redirectOptional redirect
iconGlobally registered icon name
is_hideHide from the menu when Y
is_iframe, linkiframe route and destination
fixed_tabFixed tab and possible home target
action_listAllowed actions for the current route

Action permissions

vue
<n-button v-auth="'create'">Create</n-button>
<n-button v-auth="['update', 'delete']">Manage</n-button>
<n-button v-auth="'UserList:export'">Export</n-button>

Use auth() in script code and the auth option in useRowActions. These controls only affect the interface; the backend must authorize every request.

Released under the MIT License