From 10492a922d3a8d295ada4ec99cc928031f3abd0e Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 17 三月 2026 15:29:22 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/http.js |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index f1be56e..bf59dcc 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -497,3 +497,18 @@
     }
     return [];
 }
+
+export const fetchNewsLogs = async () => {
+    try {
+        const res = await request.get('/news/print');
+        const { code, msg, data } = res.data;
+        if (code === 200) {
+            return Array.isArray(data) ? data : [];
+        }
+        notify?.error(msg);
+    } catch (error) {
+        notify?.error(error.message);
+        console.error(error.message);
+    }
+    return null;
+}
\ No newline at end of file

--
Gitblit v1.9.1