From 35fd1f14cbe260a2075f8b7df7bc927357e2b16e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 18 十月 2024 15:51:39 +0800 Subject: [PATCH] # --- zy-acs-flow/src/map/http.js | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js index 2da92f2..ea579b8 100644 --- a/zy-acs-flow/src/map/http.js +++ b/zy-acs-flow/src/map/http.js @@ -166,3 +166,24 @@ console.error(error.message); }) } + +export const handleRestoreAgvAll = async (param, callback) => { + await request.post('/handler/restore/agv', param, { + headers: { + 'appKey': HANDLE_APP_KEY + } + }).then((res) => { + const { code, msg, data } = res.data; + if (code === 200) { + notify.success(msg); + if (callback) { + callback(data) + } + } else { + notify.error(msg); + } + }).catch((error) => { + notify.error(error.message); + console.error(error.message); + }) +} -- Gitblit v1.9.1