Commit a2703327 authored by 刘攀's avatar 刘攀

fix

parents 09803c1e 6691764b
......@@ -16,15 +16,16 @@ class Fetch {
this.baseUrl = REQUEST_URL[process.env.VUE_APP_SERVE_ENV]
this.baseServeUrl = 'web'
this.headers = {
Accept: 'v=1.0',
'Qm-From-Type': 'retail',
// #ifdef MP-WEIXIN
'Qm-From': 'wechat',
// #endif
// #ifdef MP-ALIPAY
'Qm-From': 'alipay',
referer: this.baseUrl,
// #endif
'Qm-From-Type': 'retail',
'content-type': 'application/json',
Accept: 'v=1.0',
}
}
// 判断是否是对象
......@@ -78,6 +79,7 @@ class Fetch {
method,
data: params,
header: headers,
dataType: 'json',
success: res => {
if (res.statusCode === 200 && res.data.status) {
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