From 31ec63f0419895876cbaba99637a884a32d33d0d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 01 九月 2021 10:31:45 +0800 Subject: [PATCH] 2021-09-01 --- src/tabviews/zshare/mutilform/mkTextArea/index.jsx | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/mutilform/mkTextArea/index.jsx b/src/tabviews/zshare/mutilform/mkTextArea/index.jsx index ef57945..04886c9 100644 --- a/src/tabviews/zshare/mutilform/mkTextArea/index.jsx +++ b/src/tabviews/zshare/mutilform/mkTextArea/index.jsx @@ -30,7 +30,7 @@ if (_value) { try { _value = window.decodeURIComponent(window.atob(_value)) - } catch { + } catch (e) { _value = config.initval } } @@ -59,6 +59,7 @@ this.inputRef.current.focus() } else if (type === 'input') { this.setState({value}) + this.props.onChange(value, true) } } @@ -72,7 +73,7 @@ if (encryption === 'true') { try { _val = window.btoa(window.encodeURIComponent(_val)) - } catch { + } catch (e) { _val = val } } -- Gitblit v1.8.0