2026-08-22 20:35:57 +08:00
|
|
|
|
/** 功能描述:扩展配送点后台路由元数据类型。版本:v1.1.0。 */
|
2026-07-30 14:16:58 +08:00
|
|
|
|
import 'vue-router';
|
|
|
|
|
|
|
|
|
|
|
|
declare module 'vue-router' {
|
|
|
|
|
|
interface RouteMeta {
|
|
|
|
|
|
roles?: string[]; // Controls roles that have access to the page
|
|
|
|
|
|
menuCode?: string; // Server-assigned menu domain required by this route
|
|
|
|
|
|
staffType?: 'installer' | 'delivery' | 'operations';
|
|
|
|
|
|
createMode?: boolean;
|
2026-08-22 20:35:57 +08:00
|
|
|
|
resource?: string;
|
|
|
|
|
|
recordMode?: 'create' | 'detail' | 'edit';
|
|
|
|
|
|
listRouteName?: string;
|
|
|
|
|
|
canonicalCreate?: boolean;
|
2026-07-30 14:16:58 +08:00
|
|
|
|
requiresAuth: boolean; // Whether login is required to access the current page (every route must declare)
|
|
|
|
|
|
icon?: string; // The icon show in the side menu
|
|
|
|
|
|
locale?: string; // The locale name show in side menu and breadcrumb
|
|
|
|
|
|
hideInMenu?: boolean; // If true, it is not displayed in the side menu
|
|
|
|
|
|
hideChildrenInMenu?: boolean; // if set true, the children are not displayed in the side menu
|
|
|
|
|
|
activeMenu?: string; // if set name, the menu will be highlighted according to the name you set
|
|
|
|
|
|
order?: number; // Sort routing menu items. If set key, the higher the value, the more forward it is
|
|
|
|
|
|
noAffix?: boolean; // if set true, the tag will not affix in the tab-bar
|
|
|
|
|
|
ignoreCache?: boolean; // if set true, the page will not be cached
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|