From ca2774ca28b340167446bc0f124fb5d83a6629be Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 22 Feb 2024 16:23:19 +0800 Subject: [PATCH] update navbar user dept --- src/api/system/user.js | 7 +++++++ src/layout/components/NavbarRight.vue | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/api/system/user.js b/src/api/system/user.js index ffa08da0..1d43a1ae 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -26,6 +26,13 @@ export function getUser(userId) { }) } +export function getUserSimple(userId) { + return request({ + url: '/system/user/getSimple?id=' + praseStrEmpty(userId), + method: 'get' + }) +} + // 新增用户 export function addUser(data) { return request({ diff --git a/src/layout/components/NavbarRight.vue b/src/layout/components/NavbarRight.vue index 228cde89..98f97a3b 100644 --- a/src/layout/components/NavbarRight.vue +++ b/src/layout/components/NavbarRight.vue @@ -26,7 +26,7 @@