小程序直播部分,暂未写完

This commit is contained in:
lemon橪
2021-05-25 14:27:18 +08:00
parent 44c88468d4
commit e5dbd18bf3
10 changed files with 728 additions and 36 deletions

View File

@@ -216,19 +216,20 @@ export const postRequestWithNoForm = (url, params) => {
});
};
// export const postRequestWithHeaders = (url, params) => {
// let accessToken = getStore("accessToken");
// return axios({
// method: "post",
// url: `${url}`,
// data: params,
export const postRequestWithHeaders = (url, params) => {
let accessToken = getStore("accessToken");
return axios({
method: "post",
url: `${url}`,
data: params,
headers: {
accessToken: accessToken,
"Content-Type": "application/x-www-form-urlencoded"
}
});
};
// headers: {
// accessToken: accessToken,
// "Content-Type": "application/x-www-form-urlencoded"
// }
// });
// };
export const putRequest = (url, params,headers) => {
let accessToken = getStore("accessToken");