判断用户后台权限
This commit is contained in:
parent
11b42afde3
commit
b30a72555f
|
@ -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() {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue