diff --git a/src/components/input/main.js b/src/components/input/main.js index 95aeb5bd..4e93ee0f 100644 --- a/src/components/input/main.js +++ b/src/components/input/main.js @@ -62,7 +62,7 @@ import classNames from 'classnames' this.setState({'errshow':false}); } } - componentDidMount(){ + componentWillMount(){ let val=this.props.value?this.props.value:''; console.log("当前的值",val)