From ef8acbf3859bd13e759fbb9b8ba726039c1fb2c5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 14 十一月 2023 15:51:59 +0800 Subject: [PATCH] 2023-11-14 --- src/tabviews/zshare/mutilform/mkInput/index.jsx | 18 +----------------- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/src/tabviews/zshare/mutilform/mkInput/index.jsx b/src/tabviews/zshare/mutilform/mkInput/index.jsx index b85134d..cad739c 100644 --- a/src/tabviews/zshare/mutilform/mkInput/index.jsx +++ b/src/tabviews/zshare/mutilform/mkInput/index.jsx @@ -78,22 +78,6 @@ } 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) } } @@ -139,7 +123,7 @@ MKEmitter.emit('mkFC', 'focus', config.tabUuid) } else { MKEmitter.emit('mkFC', 'focus', config.tabUuid) - this.props.onSubmit() + this.props.onSubmit(config.tabUuid) } } -- Gitblit v1.8.0