Commit 74786e28 authored by 刘攀's avatar 刘攀

fix

parents 09803c1e 6691764b
...@@ -16,15 +16,16 @@ class Fetch { ...@@ -16,15 +16,16 @@ class Fetch {
this.baseUrl = REQUEST_URL[process.env.VUE_APP_SERVE_ENV] this.baseUrl = REQUEST_URL[process.env.VUE_APP_SERVE_ENV]
this.baseServeUrl = 'web' this.baseServeUrl = 'web'
this.headers = { this.headers = {
Accept: 'v=1.0',
'Qm-From-Type': 'retail',
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
'Qm-From': 'wechat', 'Qm-From': 'wechat',
// #endif // #endif
// #ifdef MP-ALIPAY // #ifdef MP-ALIPAY
'Qm-From': 'alipay', 'Qm-From': 'alipay',
referer: this.baseUrl,
// #endif // #endif
'Qm-From-Type': 'retail',
'content-type': 'application/json', 'content-type': 'application/json',
Accept: 'v=1.0',
} }
} }
// 判断是否是对象 // 判断是否是对象
...@@ -78,6 +79,7 @@ class Fetch { ...@@ -78,6 +79,7 @@ class Fetch {
method, method,
data: params, data: params,
header: headers, header: headers,
dataType: 'json',
success: res => { success: res => {
if (res.statusCode === 200 && res.data.status) { if (res.statusCode === 200 && res.data.status) {
resolve(res.data) resolve(res.data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment