优化管理端和卖家端登录

This commit is contained in:
paulGao
2022-01-17 18:00:49 +08:00
parent cf740d9605
commit 1bee69cefb
6 changed files with 47 additions and 11 deletions

View File

@@ -350,3 +350,20 @@ export const postRequestWithNoToken = (url, params) => {
params: params
});
};
/**
* 无需token验证的请求 避免旧token过期导致请求失败
* @param {*} url
* @param {*} params
*/
export const postRequestWithNoTokenData = (url, params) => {
return service({
method: "post",
url: `${url}`,
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
data: params
});
};