Skip to content

Commit

Permalink
修复社交新增无反应bug
Browse files Browse the repository at this point in the history
  • Loading branch information
byteblogs168 committed Feb 20, 2020
1 parent 200924e commit ea39f46
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/views/social/modules/CreateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<a-form-item label="code">
<a-row class="form-row" :gutter="16" justify="space-between">
<a-col :lg="22" :md="12" :sm="24">
<a-select placeholder="请选择code" v-show="!isAddCode" v-decorator="['code1', { rules: [{ required: true, message: '请输入code', whitespace: true }] }]" >
<a-select placeholder="请选择code" v-show="!isAddCode" v-decorator="['code', { rules: [{ required: true, message: '请输入code', whitespace: true }] }]" >
<a-select-option value="QQ">QQ</a-select-option>
<a-select-option value="CSDN">CSDN</a-select-option>
<a-select-option value="reward">打赏</a-select-option>
Expand All @@ -25,7 +25,7 @@
<a-input
placeholder="请输入code"
v-show="isAddCode"
v-decorator="['code2', { rules: [{ required: true, message: '请输入code', whitespace: true }] }]"
v-decorator="['code', { rules: [{ required: true, message: '请输入code', whitespace: true }] }]"
/>
</a-col>
<a-col :lg="2" :md="12" :sm="24">
Expand Down Expand Up @@ -168,12 +168,6 @@ export default {
createParams['content'] = this.content
}
if (this.isAddCode) {
createParams['code'] = createParams.code2
} else {
createParams['code'] = createParams.code1
}
if (this.formType === 'create') {
createSocial(createParams)
.then(res => {
Expand Down Expand Up @@ -238,10 +232,7 @@ export default {
isHome: this.$form.createFormField({
value: postForm.isHome
}),
code1: this.$form.createFormField({
value: postForm.code
}),
code2: this.$form.createFormField({
code: this.$form.createFormField({
value: postForm.code
})
}
Expand Down

0 comments on commit ea39f46

Please sign in to comment.