From a5f41b5d98f23d618dc7519c605ce943b114dfd5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 13 十一月 2023 18:07:51 +0800
Subject: [PATCH] 2023-11-13

---
 src/tabviews/zshare/mutilform/mkInput/index.jsx |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/zshare/mutilform/mkInput/index.jsx b/src/tabviews/zshare/mutilform/mkInput/index.jsx
index 2092679..b85134d 100644
--- a/src/tabviews/zshare/mutilform/mkInput/index.jsx
+++ b/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)
     }
   }
 

--
Gitblit v1.8.0