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 @@