mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-06-01 15:49:16 +08:00
getUserInfo接口支持[tokenName]自定义
This commit is contained in:
parent
825e8dff1b
commit
ceed4db65b
@ -1,6 +1,6 @@
|
||||
import request from "@/utils/request";
|
||||
import { encryptedData } from "@/utils/encrypt";
|
||||
import { loginRSA } from "@/config/settings";
|
||||
import { loginRSA, tokenName } from "@/config/settings";
|
||||
|
||||
export async function login(data) {
|
||||
if (loginRSA) {
|
||||
@ -18,7 +18,7 @@ export function getUserInfo(accessToken) {
|
||||
url: "/userInfo",
|
||||
method: "post",
|
||||
data: {
|
||||
accessToken,
|
||||
[tokenName]: accessToken,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user