From 74b579ec300b2316c6ec0a744ea3c0ad9f8b54d3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 20 一月 2025 15:30:54 +0800
Subject: [PATCH] 2025-01-20

---
 src/api/index.js |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 426e70a..e43c5bd 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -737,11 +737,10 @@
           if (res.mksqls) {
             res.mksqls.forEach(n => {
               n = n.replace(/(UNION ALL\s+)?SELECT obj_name='[\S\s]+sub_field=''\s+/ig, '')
-              if (!res.status) {
-                window.mkInfo('%c' + n, 'color: #f5222d')
-              } else {
-                window.mkInfo(n)
+              if (!res.status && param.data[0] && param.data[0].menuname) {
+                window.mkInfo('%c' + param.data[0].menuname, 'color: #f5222d')
               }
+              window.mkInfo(n)
             })
           }
           delete res.mksqls
@@ -1060,11 +1059,10 @@
           if (res.mksqls) {
             res.mksqls.forEach(n => {
               n = n.replace(/(UNION ALL\s+)?SELECT obj_name='[\S\s]+sub_field=''\s+/ig, '')
-              if (!res.status) {
-                window.mkInfo('%c' + n, 'color: #f5222d')
-              } else {
-                window.mkInfo(n)
+              if (!res.status && param.data[0] && param.data[0].menuname) {
+                window.mkInfo('%c' + param.data[0].menuname, 'color: #f5222d')
               }
+              window.mkInfo(n)
             })
           }
           delete res.mksqls

--
Gitblit v1.8.0