From d76b46c1145769928d581f276e464049e2261bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B7=E5=86=B7?= Date: Sun, 25 Mar 2018 21:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Davue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/index/top/index.vue | 6 +++--- src/page/lock/index.vue | 4 ++-- src/router/router.js | 35 ++++++++++++++--------------------- src/views/admin/user/info.vue | 10 ++++++---- 4 files changed, 25 insertions(+), 30 deletions(-) diff --git a/src/page/index/top/index.vue b/src/page/index/top/index.vue index 1ce699eb..ab83ab16 100644 --- a/src/page/index/top/index.vue +++ b/src/page/index/top/index.vue @@ -24,13 +24,13 @@ - 首页 + avue地址 - 码云地址 + pig地址 - github + 修改信息 退出系统 diff --git a/src/page/lock/index.vue b/src/page/lock/index.vue index 7cf4f945..e6a289c2 100644 --- a/src/page/lock/index.vue +++ b/src/page/lock/index.vue @@ -3,7 +3,7 @@

{{userInfo.username}}

- + @@ -91,4 +91,4 @@ export default { .lock-form { width: 300px; } - \ No newline at end of file + diff --git a/src/router/router.js b/src/router/router.js index 3c58349c..cd35042a 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -41,7 +41,18 @@ export const asyncRouterMap = [ path: '/', name: '主页', redirect: '/wel' - }, + },{ + path: '/info', + component: Layout, + redirect: '/info/index', + children: [ + { + path: 'index', + name: '修改信息', + component: _import('admin/user/info', 'views') + } + ] + }, { path: '/myiframe', component: Layout, @@ -66,23 +77,5 @@ export const asyncRouterMap = [ component: _import('wel') } ] - }, { - menuId: 1, - path: '/admin', - component: Layout, - name: '系统管理', - hidden: false, - redirect: '/admin/user', - meta: { - title: '系统管理', - }, - children: [ - { menuId: 2, path: 'user', component: _import('admin/user/index', 'views'), name: '用户管理', meta: { title: '用户管理' } }, - { menuId: 3, path: 'menu', component: _import('admin/menu/index', 'views'), name: '菜单管理', meta: { title: '菜单管理' } }, - { menuId: 4, path: 'role', component: _import('admin/role/index', 'views'), name: '角色管理', meta: { title: '角色管理' } }, - { menuId: 5, path: 'dept', component: _import('admin/dept/index', 'views'), name: '部门管理', meta: { title: '部门管理' } }, - { menuId: 6, path: 'dict', component: _import('admin/dict/index', 'views'), name: '字典管理', meta: { title: '字典管理' } }, - { menuId: 7, path: 'log', component: _import('admin/log/index', 'views'), name: '日志管理', meta: { title: '日志管理' } } - ] - }, -] \ No newline at end of file + } +] diff --git a/src/views/admin/user/info.vue b/src/views/admin/user/info.vue index 8a2e1bd6..422ad7c4 100644 --- a/src/views/admin/user/info.vue +++ b/src/views/admin/user/info.vue @@ -5,7 +5,7 @@
- + @@ -18,7 +18,7 @@ - + 选择 @@ -37,7 +37,7 @@