Commit 0a505e4c by Mark

说明

parent 955e382e
......@@ -22,4 +22,47 @@
![输入图片说明](http://cdn.renren.io/img/82b99a1f0f884454ac3fff5e7f658ac8 "在这里输入图片标题")
**renren-fast-vue**
- 会生成elementui目录,把elementui目录下的src目录,直接覆盖原工程
- 修改原工程下的src/api/index.js,如:
```javascript
import * as common from './modules/common'
import * as user from './modules/user'
import * as role from './modules/role'
import * as menu from './modules/menu'
import * as log from './modules/log'
import * as config from './modules/config'
import * as oss from './modules/oss'
import * as goods from './modules/goods'
import * as schedule from './modules/schedule'
export default {
common, // 公共
user, // 管理员管理
role, // 角色管理
menu, // 菜单管理
log, // 系统日志
config, // 参数管理
oss, // 文件服务
goods, // 商品管理
schedule // 定时任务
}
```
- 修改原工程下的src/router/index.js,如:
```javascript
children: [
// 以'/n'开头统一拦截, 标记为左侧菜单导航tab展示内容方式路由
{ path: '/n/user', component: _import('user/index'), name: 'user', desc: '管理员管理' },
{ path: '/n/role', component: _import('role/index'), name: 'role', desc: '角色管理' },
{ path: '/n/menu', component: _import('menu/index'), name: 'menu', desc: '菜单管理' },
{ path: '/n/sql', component: _import('sql/index'), name: 'sql', desc: 'SQL监控' },
{ path: '/n/schedule', component: _import('schedule/index'), name: 'schedule', desc: '定时任务' },
{ path: '/n/config', component: _import('config/index'), name: 'config', desc: '参数管理' },
{ path: '/n/oss', component: _import('oss/index'), name: 'oss', desc: '文件上传' },
{ path: '/n/goods', component: _import('goods/index'), name: 'goods', desc: '商品管理' },
{ path: '/n/log', component: _import('log/index'), name: 'log', desc: '系统日志' }
]
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment