From b488c2f9630583a72e2bcae3df68f4227622ec78 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 15 六月 2024 13:42:21 +0800
Subject: [PATCH] 2024-06-15

---
 src/views/menudesign/index.jsx |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx
index cee5ca7..b084ffc 100644
--- a/src/views/menudesign/index.jsx
+++ b/src/views/menudesign/index.jsx
@@ -773,7 +773,7 @@
       })
       return
     } else if (this.checklog()) {
-      if (MenuType !== 'billPrint' && sessionStorage.getItem('langList') && !config.trans) {
+      if (sessionStorage.getItem('langList') && !config.trans) {
 
       } else {
         notification.success({
@@ -846,7 +846,7 @@
 
       let interfaces = getFuncsAndInters(config)
       let urlFields = config.urlFields ? config.urlFields.join(',') : ''
-      let langSql = MenuType !== 'billPrint' ? getLangTrans(config) : ''
+      let langSql = getLangTrans(config)
 
       let param = {
         func: 'sPC_TrdMenu_AddUpt',
@@ -860,13 +860,16 @@
         MenuName: config.MenuName || '',
         PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, urlFields}),
         open_edition: config.open_edition,
-        LText: '',
-        LTexttb: '',
+        // LText: '',
+        // LTexttb: '',
         debug_md5: key,
         debug_url: url,
         debug_list: window.btoa(tbs),
-        LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config))),
-        lang_translation: window.btoa(window.encodeURIComponent(langSql))
+        LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config)))
+      }
+
+      if (langSql) {
+        param.lang_translation = window.btoa(window.encodeURIComponent(langSql))
       }
 
       param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')

--
Gitblit v1.8.0