no message

This commit is contained in:
A1300399510
2023-12-29 18:37:38 +08:00
parent c80cee6eb0
commit d7915dd321
15 changed files with 852 additions and 180 deletions

View File

@@ -57,13 +57,9 @@ const get = (url, params) => {
const post = (url, params) => {
return new Promise((resolve, reject) => {
//是将对象 序列化成URL的形式以&进行拼接
axios.post(url, QS.stringify(params)).then(res => {
resolve(res.data);
}).catch(err => {
if (err.data.code == 401) {
resolve(err.data);
} else reject(err.data)
axios.post(url, QS.stringify(params)).then(res => resolve(res.data)).catch(err => {
if (err.data.code == 401) resolve(err.data);
else reject(err.data)
})
});
}