src/components/encrypts/index.jsx @@ -13,6 +13,12 @@ eye: false } UNSAFE_componentWillReceiveProps(nextProps) { if (nextProps.value !== this.props.value) { this.setState({eye: false}) } } getValue = () => { const { value } = this.props