feat: 添加路由元信息支持,优化无限加载组件的状态管理和错误处理
This commit is contained in:
@ -39,3 +39,12 @@ export function install({ app }: { app: import('vue').App<Element> }) {
|
||||
createLogGuard(router);
|
||||
Object.assign(window, { stack: createStackGuard(router) });
|
||||
}
|
||||
|
||||
declare module 'vue-router' {
|
||||
interface RouteMeta {
|
||||
/**
|
||||
* @description 是否在菜单中隐藏
|
||||
*/
|
||||
hidden?: boolean;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user