mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-25 14:20:21 +08:00
feat(projects): add menu route field
This commit is contained in:
14
src/typings/api.d.ts
vendored
14
src/typings/api.d.ts
vendored
@@ -198,6 +198,12 @@ declare namespace Api {
|
||||
order: number;
|
||||
/** whether to cache the route */
|
||||
keepAlive?: boolean;
|
||||
/**
|
||||
* Is constant route
|
||||
*
|
||||
* Does not need to login, and the route is defined in the front-end
|
||||
*/
|
||||
constant?: boolean;
|
||||
/** outer link */
|
||||
href?: string;
|
||||
/** whether to hide the route in the menu */
|
||||
@@ -215,8 +221,16 @@ declare namespace Api {
|
||||
multiTab?: boolean;
|
||||
/** If set, the route will be fixed in tabs, and the value is the order of fixed tabs */
|
||||
fixedIndexInTab?: number;
|
||||
/** if set query parameters, it will be automatically carried when entering the route */
|
||||
query: Record<string, string>;
|
||||
/** menu buttons */
|
||||
buttons?: MenuButton[];
|
||||
/**
|
||||
* Roles of the route
|
||||
*
|
||||
* Route can be accessed if the current user has at least one of the roles
|
||||
*/
|
||||
roles?: string[];
|
||||
/** children menu */
|
||||
children?: Menu[];
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user