From b30a72555f67389d46a312af4b990cc146c23bab Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 25 Oct 2022 09:48:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=94=A8=E6=88=B7=E5=90=8E?= =?UTF-8?q?=E5=8F=B0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/user.js | 15 +- front/src/views/home/components/header.vue | 993 +++++++++++---------- 2 files changed, 526 insertions(+), 482 deletions(-) diff --git a/front/src/api/user.js b/front/src/api/user.js index a8e05e59..c8167d56 100644 --- a/front/src/api/user.js +++ b/front/src/api/user.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-03-29 17:48:03 - * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-15 16:42:22 + * @LastEditors: Light + * @LastEditTime: 2022-10-25 09:37:05 * @Description: 告诉大家这是什么 */ import request from '@/utils/request' @@ -23,6 +23,13 @@ export async function socialLogin(data) { }) } +export function getRole(params) { + return request({ + url: '/sys/role/' + params, + method: 'get', + params, + }) +} export function getUserInfo(redict) { //此处为了兼容mock.js使用data传递accessToken,如果使用mock可以走headers // debugger @@ -30,8 +37,8 @@ export function getUserInfo(redict) { url: '/sys/user/info', method: 'get', headers: { - REQUESTURI:redict - } + REQUESTURI: redict, + }, }) } export function getDeptAll() { diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 8c67bc87..8bc1e908 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -1,8 +1,11 @@