Archived
feat: 添加路由元信息支持,优化无限加载组件的状态管理和错误处理
This commit is contained in:
1 parent
d4b34a4f1f
commit
7258853b57
8 files changed
+204
-144
No files matched your search
@@ -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