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.
18 lines
692 B
18 lines
692 B
5 years ago
|
npm install 安装依赖
|
||
|
npm run dev 运行项目
|
||
|
|
||
|
ui框架参考:element http://element-cn.eleme.io/#/zh-CN
|
||
|
|
||
|
开发环境
|
||
|
1. 路由的添加
|
||
|
1. 路由表(all):route-list (path:'src/common/js/route-list.js' )
|
||
|
2. 配置路由表 Utils (path:'src/common/js/utils.js' )
|
||
|
a. getRoutes():是定义父级路由,即目录,一般不用动
|
||
|
b. _filterRoutes():子父级路由的配对
|
||
|
c. _addDetail():子路由带出的页面(例如详情,审核等) --默认不调用--
|
||
|
3. 模拟用户权限:testR(path:'src/common/js/testR.js')
|
||
|
|
||
|
|
||
|
正式环境 build (未完成配置)
|
||
|
1. 配置请求地址
|
||
|
1. src/config/prod.env.js 修改BASEAPI
|