feat: 添加路由元信息支持,优化无限加载组件的状态管理和错误处理
Some checks failed
/ build-and-deploy-to-vercel (push) Successful in 55s
/ depcheck (push) Successful in 1m24s
/ playwright (push) Failing after 2m50s

This commit is contained in:
严浩
2025-01-08 14:43:26 +08:00
parent d4b34a4f1f
commit 7258853b57
8 changed files with 204 additions and 144 deletions

View File

@ -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;
}
}