提交 6440e6dc authored 作者: lihuihui's avatar lihuihui

请求form

上级 98ecc754
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
projectList: [ projectList: [
{ label: '金融工商管理硕士', value: '1000' }, { label: '金融工商管理硕士', value: '1000' },
{ label: '酒店及旅游业工商管理硕士', value: '1008' }, { label: '酒店及旅游业工商管理硕士', value: '1008' },
{ label: '金融硕士', value: '1001' }, { label: '金融硕士MSF', value: '1001' },
{ label: '应用心理学硕士', value: '1006' }, { label: '应用心理学硕士', value: '1006' },
{ label: '教育学硕士', value: '1005' }, { label: '教育学硕士', value: '1005' },
{ label: '中国未来金融领袖计划', value: '1007' } { label: '中国未来金融领袖计划', value: '1007' }
......
...@@ -40,9 +40,9 @@ httpRequest.interceptors.request.use( ...@@ -40,9 +40,9 @@ httpRequest.interceptors.request.use(
config.params = params config.params = params
} }
} }
// if (config.headers['Content-Type'] === 'application/x-www-form-urlencoded') { if (config.headers['Content-Type'] === 'application/x-www-form-urlencoded') {
// config.data = qs.stringify(config.data) config.data = qs.stringify(config.data)
// } }
if (config.headers['Content-Type'] === 'multipart/form-data') { if (config.headers['Content-Type'] === 'multipart/form-data') {
const form = new window.FormData() const form = new window.FormData()
for (const key in config.data) { for (const key in config.data) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论