提交 8e8bc41d 编写于 作者: fxy060608's avatar fxy060608

fix(protocol): request header contentType

上级 919c7d4d
......@@ -78,6 +78,7 @@ export const request = {
type: Object,
validator (value, params) {
params.header = value || {}
params.header['content-type'] = params.header['content-type'] || 'application/json'
}
},
dataType: {
......@@ -93,4 +94,4 @@ export const request = {
params.responseType = Object.values(responseType).indexOf(value) < 0 ? responseType.TEXT : value
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册