From 49f09cc6f8ff8c30a75ed1a9d6f510b69b73962a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 12 十二月 2023 21:05:37 +0800
Subject: [PATCH] 2023-12-12

---
 src/menu/urlfieldcomponent/settingform/index.jsx |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/menu/urlfieldcomponent/settingform/index.jsx b/src/menu/urlfieldcomponent/settingform/index.jsx
index 8214588..2c3784e 100644
--- a/src/menu/urlfieldcomponent/settingform/index.jsx
+++ b/src/menu/urlfieldcomponent/settingform/index.jsx
@@ -2,7 +2,7 @@
 import PropTypes from 'prop-types'
 import { Form, Input } from 'antd'
 
-import './index.scss'
+// import './index.scss'
 
 class SettingForm extends Component {
   static propTpyes = {
@@ -30,6 +30,17 @@
     }
   }
 
+  componentDidMount() {
+    try {
+      let _input = document.getElementById('field')
+      if (_input.focus) {
+        _input.focus()
+      }
+    } catch (e) {
+      console.warn('focus error锛�')
+    }
+  }
+
   render() {
     const { getFieldDecorator } = this.props.form
 

--
Gitblit v1.8.0