You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CherrysChang
60c0689f69
|
5 years ago | |
---|---|---|
build | 5 years ago | |
config | 5 years ago | |
src | 5 years ago | |
.babelrc | 5 years ago | |
.gitignore | 5 years ago | |
index.html | 5 years ago | |
package-lock.json | 5 years ago | |
package.json | 5 years ago | |
readme.md | 5 years ago |
readme.md
npm install 安装依赖 npm run dev 运行项目
ui框架参考:element http://element-cn.eleme.io/#/zh-CN
开发环境
- 路由的添加
- 路由表(all):route-list (path:'src/common/js/route-list.js' )
- 配置路由表 Utils (path:'src/common/js/utils.js' ) a. getRoutes():是定义父级路由,即目录,一般不用动 b. _filterRoutes():子父级路由的配对 c. _addDetail():子路由带出的页面(例如详情,审核等) --默认不调用--
- 模拟用户权限:testR(path:'src/common/js/testR.js')
正式环境 build (未完成配置)
- 配置请求地址
- src/config/prod.env.js 修改BASEAPI