Loading...
Loading...
Front-end routing specification, including routing file organization structure, dynamic routing generation, static auxiliary routing writing, RouteMeta meta information fields, and routing guard logic. Suitable for projects based on vue-vben-admin v5. This skill is used when you need to add new routes, configure routing permissions, write routing guards, or modify routing-related files.
npx skill4agent add kevinqpeng/proxy-skills frontend-routerapps/web-antd/src/router/apps/web-antd/src/router/
├── access.ts # 菜单权限、动态路由生成逻辑,与后端交互生成可访问菜单
├── guard.ts # 路由守卫(加载进度、权限校验、NProgress 等)
├── index.ts # Router 实例创建及初始化入口
├── routes/ # 路由配置目录
│ ├── core.ts # 基础/核心路由(登录、404兜底、Root重定向,无权限校验)
│ ├── index.ts # 路由聚合与扁平化输出
│ └── modules/ # 页面模块化的静态/动态辅助路由配置文件
└── tongji.ts # 统计配置vue-vben-admingetAuthPermissionInfoApicomponentKeysapps/web-antd/src/views/**/*.vueroutes/modules/routes/modules/*.tsmodulesimport type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
{
path: '/system/notify-message',
component: () => import('#/views/system/notify/my/index.vue'),
name: 'MyNotifyMessage',
meta: {
title: '我的站内信',
icon: 'ant-design:message-filled',
hideInMenu: true,
},
},
];
export default routes;RouteMetatitle$t('page.xxx')iconhideInMenubooleanhideInBreadcrumbbooleanhideInTabbooleanaffixTabbooleanignoreAccessbooleanguard.tsloadedPathsaccessStore.accessToken/auth/loginisAccessCheckedfalsefetchUserInfo()vue-routergenerateAccessrouter/routes/core.tsroutes/modules//system/user-role() => import('#/views/...')