|
|
@@ -60,7 +60,7 @@ export default {
|
|
|
{
|
|
|
params: params,
|
|
|
},
|
|
|
- {},
|
|
|
+ { withCredentials: true },
|
|
|
)
|
|
|
.then(res => {
|
|
|
if (res.status === 200) {
|
|
|
@@ -78,7 +78,7 @@ export default {
|
|
|
params = params || {};
|
|
|
return new Promise((resolve, reject) => {
|
|
|
axiosInstance
|
|
|
- .post(url, qs.stringify(params), {})
|
|
|
+ .post(url, qs.stringify(params), { withCredentials: true })
|
|
|
.then(res => {
|
|
|
if (res.status === 200) {
|
|
|
resolve(res.data);
|