|
|
há 5 anos atrás | |
|---|---|---|
| assets | há 5 anos atrás | |
| components | há 5 anos atrás | |
| pages | há 5 anos atrás | |
| static | há 5 anos atrás | |
| utils | há 5 anos atrás | |
| uview-ui | há 5 anos atrás | |
| .gitignore | há 5 anos atrás | |
| App.vue | há 5 anos atrás | |
| main.js | há 5 anos atrás | |
| manifest.json | há 5 anos atrás | |
| package-lock.json | há 5 anos atrás | |
| pages.json | há 5 anos atrás | |
| readme.md | há 5 anos atrás | |
| router.js | há 5 anos atrás | |
| uni.scss | há 5 anos atrás | |
| vue.config.js | há 5 anos atrás |
npm install uni-simple-router npm install uni-read-pages
新增的页面需要加入name字段,可以让路由识别 使用path跳转需要完整的路径(/pages/),而不是相对路径
不需要登陆就可以访问的页面需要配置到router.js的WHiTE_LIST白名单上 员工的页面需要配置到router.js 的ENTERPRISE列表上,不让员工权限的用户访问到 企业的页面需要配置到router.js 的STAFF列表上,不让企业权限的用户访问到