Commit ceed4db6 by chuzhixin

getUserInfo接口支持[tokenName]自定义

parent 825e8dff
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,
},
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment