1.0.3 • Published 3 years ago
ghp-cli v1.0.3
gh-cli
下载
yarn add -g ghp-cli
npm install -g ghp-cli动态生成路由命令
gh-cli routes遍历当前目录下views文件夹所有.vue文件页面头部注释,例:
<!-- routerPath: /, redirect: /home -->配置项
| 属性 | 说明 | 是否必填 |
|---|---|---|
| routerPath | 路由path | 是 |
| redirect | 重定向path | 否 |
| title | 页面标题 | 否 |
| noCache | 不被keepAlive缓存 | 否 |
| activeMenu | 在当前页面高亮路由path | 否 |
| hidden | 菜单栏不展示 | 否 |