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 }}
@@ -18,7 +18,7 @@
-
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
new file mode 100644
index 0000000..ca57cfc
--- /dev/null
+++ b/src/views/system/role/index.vue
@@ -0,0 +1,7 @@
+
+ 角色列表
+
+
+
+
+
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
new file mode 100644
index 0000000..2bc92bf
--- /dev/null
+++ b/src/views/system/user/index.vue
@@ -0,0 +1,7 @@
+
+ 用户列表
+
+
+
+
+