From cce4ab076f3fa26f393fe4039ef5a891e2e8b2a1 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 31 十二月 2024 10:49:28 +0800
Subject: [PATCH] 2024-12-31

---
 src/api/index.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/api/index.js b/src/api/index.js
index 62fa85f..b76ef61 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -736,7 +736,11 @@
           if (res.mksqls) {
             res.mksqls.forEach(n => {
               n = n.replace(/(UNION ALL\s+)?SELECT obj_name='[\S\s]+sub_field=''\s+/ig, '')
-              window.mkInfo(n)
+              if (!res.status) {
+                window.mkInfo('%c' + n, 'color: #f5222d')
+              } else {
+                window.mkInfo(n)
+              }
             })
           }
           delete res.mksqls
@@ -1055,7 +1059,11 @@
           if (res.mksqls) {
             res.mksqls.forEach(n => {
               n = n.replace(/(UNION ALL\s+)?SELECT obj_name='[\S\s]+sub_field=''\s+/ig, '')
-              window.mkInfo(n)
+              if (!res.status) {
+                window.mkInfo('%c' + n, 'color: #f5222d')
+              } else {
+                window.mkInfo(n)
+              }
             })
           }
           delete res.mksqls

--
Gitblit v1.8.0