front/src/router/typings.d.ts
zzh eb12f9fb9e
Some checks failed
Build and Deploy Front / deploy (push) Has been cancelled
feat: 官网手机端适配、EventBus 菜单与图标扩展
同步 H5/登录回官网、仓库 PeekModal、运单状态展示与菜单图标目录。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-27 15:11:57 +08:00

25 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'vue-router';
declare module 'vue-router' {
interface RouteMeta {
roles?: string[]; // Controls roles that have access to the page
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
/** 为 true 时仍参与菜单管理「同步子菜单」;可与 hideInMenu 同时使用 */
syncInMenu?: boolean;
/** 仅用于菜单同步的权限码,不触发路由 permission 守卫 */
menuPermission?: string;
customerPortalOnly?: boolean; // If true, only customer portal can access
adminPortalOnly?: boolean; // If true, only admin (internal user) portal can access
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
/** 外链嵌入页地址(iframe src),如 EventBus Dashboard */
frameSrc?: string;
}
}