Commit 9a3d41cc authored by afc163's avatar afc163

change menu icons

parent 6efdab5a
...@@ -44,60 +44,52 @@ function userAdapter(userData) { ...@@ -44,60 +44,52 @@ function userAdapter(userData) {
export const user = [{ export const user = [{
name: '帐户', name: '帐户',
icon: 'setting', icon: 'user',
path: 'user', path: 'user',
children: [{ children: [{
name: '登录', name: '登录',
path: 'login', path: 'login',
component: Login, component: Login,
icon: 'setting',
}, { }, {
name: '注册', name: '注册',
path: 'register', path: 'register',
component: Register, component: Register,
icon: 'setting',
}, { }, {
name: '注册结果', name: '注册结果',
path: 'register-result', path: 'register-result',
component: RegisterResult, component: RegisterResult,
icon: 'setting',
}], }],
}]; }];
export const menus = [{ export const menus = [{
name: 'Dashboard', name: 'Dashboard',
icon: 'setting', icon: 'dashboard',
path: 'dashboard', path: 'dashboard',
children: [{ children: [{
name: '分析页', name: '分析页',
path: 'analysis', path: 'analysis',
component: Analysis, component: Analysis,
icon: 'setting',
}, { }, {
name: '监控页', name: '监控页',
path: 'monitor', path: 'monitor',
component: Monitor, component: Monitor,
icon: 'setting',
}, { }, {
name: '工作台', name: '工作台',
path: 'workplace', path: 'workplace',
component: Workplace, component: Workplace,
icon: 'setting',
}], }],
}, { }, {
name: '表单页', name: '表单页',
path: 'form', path: 'form',
icon: 'setting', icon: 'form',
children: [{ children: [{
name: '基础表单', name: '基础表单',
path: 'basic-form', path: 'basic-form',
component: BasicForm, component: BasicForm,
icon: 'setting',
}, { }, {
name: '分步表单', name: '分步表单',
path: 'step-form', path: 'step-form',
component: StepForm, component: StepForm,
icon: 'setting',
children: [{ children: [{
path: 'confirm', path: 'confirm',
component: Step2, component: Step2,
...@@ -109,86 +101,73 @@ export const menus = [{ ...@@ -109,86 +101,73 @@ export const menus = [{
name: '高级表单', name: '高级表单',
path: 'advanced-form', path: 'advanced-form',
component: AdvancedForm, component: AdvancedForm,
icon: 'setting',
}], }],
}, { }, {
name: '列表页', name: '列表页',
path: 'list', path: 'list',
icon: 'setting', icon: 'table',
children: [{ children: [{
name: '标准表格(表格查询)', name: '标准表格(表格查询)',
path: 'table-list', path: 'table-list',
component: TableList, component: TableList,
icon: 'setting',
}, { }, {
name: '标准列表', name: '标准列表',
path: 'basic-list', path: 'basic-list',
component: BasicList, component: BasicList,
icon: 'setting',
}, { }, {
name: '卡片列表', name: '卡片列表',
path: 'card-list', path: 'card-list',
component: CardList, component: CardList,
icon: 'setting',
}, { }, {
name: '卡片列表(封面)', name: '卡片列表(封面)',
path: 'cover-card-list', path: 'cover-card-list',
component: CoverCardList, component: CoverCardList,
icon: 'setting',
}, { }, {
name: '带筛选卡片列表', name: '带筛选卡片列表',
path: 'filter-card-list', path: 'filter-card-list',
component: FilterCardList, component: FilterCardList,
icon: 'setting',
}, { }, {
name: '搜索列表', name: '搜索列表',
path: 'search', path: 'search',
component: SearchList, component: SearchList,
icon: 'setting',
}], }],
}, { }, {
name: '详情页', name: '详情页',
path: 'profile', path: 'profile',
component: Profile, component: Profile,
icon: 'setting', icon: 'profile',
}, { }, {
name: '结果', name: '结果',
path: 'result', path: 'result',
icon: 'setting', icon: 'check-circle-o',
children: [{ children: [{
name: '成功', name: '成功',
path: 'success', path: 'success',
component: Success, component: Success,
icon: 'setting',
}, { }, {
name: '失败', name: '失败',
path: 'fail', path: 'fail',
component: Error, component: Error,
icon: 'setting',
}], }],
}, { }, {
name: '错误', name: '错误',
path: 'error', path: 'error',
icon: 'setting', icon: 'warning',
children: [{ children: [{
name: '403', name: '403',
path: '403', path: '403',
component: Exception403, component: Exception403,
icon: 'setting',
}, { }, {
name: '404', name: '404',
path: '404', path: '404',
component: Exception404, component: Exception404,
icon: 'setting',
}, { }, {
name: '500', name: '500',
path: '500', path: '500',
component: Exception500, component: Exception500,
icon: 'setting',
}], }],
}, userAdapter(JSON.parse(JSON.stringify(user[0])))]; }, userAdapter(JSON.parse(JSON.stringify(user[0])))];
export default [{ export default [{
component: BasicLayout, component: BasicLayout,
name: '首页', name: '首页',
......
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