From 77c09a4b488871ff2cf8c75ba22f0875b394f07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=96=87=E5=8F=AF?= <1041367524@qq.com> Date: Thu, 17 Mar 2022 21:43:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E8=B7=AF=E7=94=B1=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/auth.js | 3 +- src/layouts/components/main.vue | 4 +- src/layouts/components/menu.vue | 3 ++ src/layouts/components/profile.vue | 4 +- src/router/index.js | 67 +++++++++------------------ src/store/modules/auth.js | 35 +++++--------- src/store/modules/layout.js | 6 +-- src/views/global/404.vue | 4 +- src/views/home/index.vue | 2 +- src/views/system/permission/index.vue | 7 +++ src/views/system/role/index.vue | 7 +++ src/views/system/user/index.vue | 7 +++ 12 files changed, 70 insertions(+), 79 deletions(-) create mode 100644 src/views/system/permission/index.vue create mode 100644 src/views/system/role/index.vue create mode 100644 src/views/system/user/index.vue diff --git a/src/api/auth.js b/src/api/auth.js index 68b7c0b..0f2d6bb 100644 --- a/src/api/auth.js +++ b/src/api/auth.js @@ -24,10 +24,11 @@ export function getUserInfo() { }); } // 获取权限列表 -export function getPermission() { +export function getPermission(params) { return request({ url: '/u-admin/uc/ucPermission/listUserMenu', method: 'get', + params, }); } // 退出登录 diff --git a/src/layouts/components/main.vue b/src/layouts/components/main.vue index ab19ee5..39fc213 100644 --- a/src/layouts/components/main.vue +++ b/src/layouts/components/main.vue @@ -16,9 +16,9 @@ box-shadow: @layout-shadow; :deep(.el-scrollbar__view) { width: 100%; - min-height: 100%; + height: 100%; > * { - display: inline-block; // 创建BFC + // display: inline-block; // 创建BFC width: 100%; height: 100%; padding: @layout-space-large; diff --git a/src/layouts/components/menu.vue b/src/layouts/components/menu.vue index e855e22..48d61b5 100644 --- a/src/layouts/components/menu.vue +++ b/src/layouts/components/menu.vue @@ -40,6 +40,9 @@ transition: opacity 0.3s; } } + :deep(*) { + white-space: nowrap; + } .title { width: 100%; height: @layout-header-height; diff --git a/src/layouts/components/profile.vue b/src/layouts/components/profile.vue index 54bf890..33ec988 100644 --- a/src/layouts/components/profile.vue +++ b/src/layouts/components/profile.vue @@ -3,7 +3,7 @@ - {{ userInfo?.username }} + {{ userInfo?.nickname || userInfo?.username }}