liting2017 6 anni fa
parent
commit
a5e97a018f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      js/component/account/setAccount/expert.jsx

+ 1 - 1
js/component/account/setAccount/expert.jsx

@@ -513,7 +513,7 @@ const Expert = React.createClass({
 								<FormItem className="half-item" {...formItemLayout} label="顾问类型">
 								<FormItem className="half-item" {...formItemLayout} label="顾问类型">
 								{getFieldDecorator('adviserType', {
 								{getFieldDecorator('adviserType', {
 									rules: [ { required: true, message: '此项为必填项!' } ],
 									rules: [ { required: true, message: '此项为必填项!' } ],
-									initialValue: theData.consultantType=='0'?theData.consultantType.toString():undefined
+									initialValue: (theData.consultantType||theData.consultantType=='0')&&theData.consultantType.toString()
 								})(
 								})(
 									<Select placeholder="选择类型">
 									<Select placeholder="选择类型">
 										{adviserType.map(function(item) {
 										{adviserType.map(function(item) {