提交 28328dad authored 作者: lihuihui's avatar lihuihui

update

上级 bfee3da3
......@@ -8,6 +8,6 @@ export default class InfoAPI extends BaseAPI {
postInfo = (obj = {}) =>
this.post('/new-app/v1.0/applications', obj, {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
headers: { 'Content-Type': 'multipart/form-data' }
})
}
......@@ -61,7 +61,8 @@ export default {
ruleForm: {
name: '',
phone: '',
channel_num: 10041
channel_num: 10041,
project_id: 1006
},
isLoading: false,
rules: {
......@@ -75,7 +76,7 @@ export default {
this.$refs.ruleForm.validate(valid => {
if (valid) {
this.isLoading = true
this.ruleForm.phone = parseInt(this.ruleForm.phone)
cAction.Infos.postInfo(this.ruleForm)
.then(() => {
this.$alert('提交成功', '信息', {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论