king
2023-11-13 a5f41b5d98f23d618dc7519c605ce943b114dfd5
src/tabviews/zshare/mutilform/mkInput/index.jsx
@@ -78,6 +78,22 @@
      } else {
        this.props.onChange(_val, true)
      }
    } else if (type === 'reset') {
      let _val = this.props.config.initval
      if (this.state.encryption === 'true' && _val) {
        try {
          _val = window.decodeURIComponent(window.atob(_val))
        } catch (e) {
          _val = this.props.config.initval
        }
      }
      this.setState({value: _val}, () => {
        this.inputRef.current.select()
      })
      this.props.onChange(this.props.config.initval)
    }
  }