From 6ca240a14ccf55d4e0a94fff77e95f64db2cdfcc Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 11 十月 2024 17:34:25 +0800
Subject: [PATCH] 2024-10-11

---
 src/menu/transfer/index.jsx |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/menu/transfer/index.jsx b/src/menu/transfer/index.jsx
index 1919b20..cdb834a 100644
--- a/src/menu/transfer/index.jsx
+++ b/src/menu/transfer/index.jsx
@@ -26,7 +26,7 @@
 
   trigger = () => {
     const { config } = this.props
-    const _this = this
+    const that = this
 
     if (!config.enabled) {
       let tb = config.components[0]
@@ -36,7 +36,7 @@
           content: '',
           onOk() {
             return new Promise(resolve => {
-              _this.execUpdate(resolve, true)
+              that.execUpdate(resolve, true)
             })
           },
           onCancel() {}
@@ -58,7 +58,7 @@
       content: '',
       onOk() {
         return new Promise(resolve => {
-          _this.execUpdate(resolve)
+          that.execUpdate(resolve)
         })
       },
       onCancel() {}
@@ -73,8 +73,6 @@
     _config.enabled = false
 
     delete _config.autoMatic
-
-    let useMSearch = false
 
     if (clear) {
       _config.components = []
@@ -91,9 +89,6 @@
             tab.components[0].width = 24
             tab.components[0].wrap.width = 24
             tab.components[0].wrap.name = tab.components[0].name
-            if (tab.components[0].setting.useMSearch === 'true') {
-              useMSearch = true
-            }
   
             tab.components[0].action.forEach(btn => {
               if (btn.OpenType === 'popview' && btn.config) {
@@ -145,14 +140,14 @@
       })
     }
 
-    if (useMSearch) {
+    if (_config.components[0].search && _config.components[0].search.length > 0) {
       let cell = {
         uuid: Utils.getuuid(),
         type: 'search',
         width: 24,
         subtype: 'mainsearch',
         name: '鎼滅储',
-        search: _config.components[0].search || [],
+        search: _config.components[0].search,
         style: {borderBottomColor: '#f0f0f0', borderBottomWidth: '1px'},
         wrap: {float: 'left', blacklist: [], name: '鎼滅储', width: 24}
       }
@@ -218,7 +213,8 @@
       type: 'admin',
       OpenType: _config.OpenType,
       PageParam: {Template: 'CustomPage', OpenType: 'newtab', hidden: _config.hidden},
-      MenuType: 'custom'
+      MenuType: 'custom',
+      lang: sessionStorage.getItem('lang')
     }
 
     let url = window.btoa(window.encodeURIComponent(JSON.stringify(urlparam)))

--
Gitblit v1.8.0