From 41c55c1f103658b997f7a828a7067bdb228f1df0 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 04 十月 2022 23:35:10 +0800
Subject: [PATCH] 2022-10-04

---
 src/views/menudesign/index.jsx |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx
index 790b5af..536a66e 100644
--- a/src/views/menudesign/index.jsx
+++ b/src/views/menudesign/index.jsx
@@ -623,15 +623,23 @@
       let tbs = []
       let delButtons = fromJS(this.state.delButtons).toJS()
       let btns = this.getMenuMessage(delButtons, tbs)
-      tbs = Array.from(new Set(tbs))
+      let arr = []
+      tbs = tbs.filter(tb => {
+        let _tb = tb.toLowerCase()
+
+        if (arr.includes(_tb)) return false
+        arr.push(_tb)
+
+        return true
+      })
       tbs.sort()
       if (tbs.length && sessionStorage.getItem('mk_tb_names')) {
         let names = sessionStorage.getItem('mk_tb_names')
         tbs = tbs.filter(tb => names.indexOf(',' + tb.toLowerCase() + ',') > -1)
       }
-      tbs = tbs.join(';')
+      tbs = tbs.map(tb => `'${tb}'`).join(';')
 
-      let key = md5(config.uuid + window.GLOB.appkey + tbs)
+      let key = md5(config.uuid + window.GLOB.appkey + tbs.toLowerCase())
       let url = ''
 
       if (config.tbkey === key) {
@@ -659,7 +667,7 @@
         LTexttb: '',
         debug_md5: key,
         debug_url: url,
-        debug_list: window.btoa(window.encodeURIComponent(tbs)),
+        debug_list: window.btoa(tbs),
         LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config)))
       }
 

--
Gitblit v1.8.0