feat: markdown auto format

This commit is contained in:
zerosoul
2022-03-25 09:40:40 +08:00
parent a9e06dcc7d
commit bdaf27f224
37 changed files with 1750 additions and 1032 deletions
+2 -2
View File
@@ -10,14 +10,14 @@ const whiteList = [
"getServer",
"getOpenid",
"getMetamaskNonce",
"renew",
];
const baseQuery = fetchBaseQuery({
baseUrl: BASE_URL,
prepareHeaders: (headers, { getState, endpoint }) => {
console.log("req", endpoint);
const { token } = getState().authData;
const noHeaderList = [...whiteList, "renew"];
if (token && !noHeaderList.includes(endpoint)) {
if (token && !whiteList.includes(endpoint)) {
headers.set(tokenHeader, token);
}
return headers;