From 920bb5635c88c2f2f9a21134c81ebbc344539987 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 16 十二月 2025 11:07:06 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/http.js | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index 9f140df..4754b48 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -434,22 +434,22 @@
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) => {
+export const removeArea = async (id) => {
try {
- const res = await request.post('/map/area/remove', { areaId });
+ const res = await request.post('/map/area/remove', { id });
const { code, msg } = res.data;
if (code === 200) {
notify.success(msg);
--
Gitblit v1.9.1