From 6c8b7680bb4c5164a02c088fe1eb282670e107a9 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 16 十二月 2025 09:43:19 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/http.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index 9f140df..934f21e 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -434,17 +434,17 @@
export const updateAreaData = async (payload = {}) => {
try {
const res = await request.post('/map/area/update', payload);
- const { code, msg } = res.data;
+ const { code, msg, data } = res.data;
if (code === 200) {
- notify.success?.(msg);
- return true;
+ notify.success(msg);
+ return data;
}
- notify?.error?.(msg);
+ notify.error(msg);
} catch (error) {
notify.error(error.message);
console.error(error.message);
}
- return false;
+ return null;
};
export const removeArea = async (areaId) => {
--
Gitblit v1.9.1