Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
renren-generator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
renren-generator
Commits
0a505e4c
Commit
0a505e4c
authored
Mar 22, 2018
by
Mark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
说明
parent
955e382e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
README.md
README.md
+43
-0
No files found.
README.md
View file @
0a505e4c
...
...
@@ -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
:
'系统日志'
}
]
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment