From 3f3cb29cd9ffb7a39d3ed9e562a4c77a859a3f88 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 16 Aug 2025 16:40:00 +0800
Subject: [PATCH] feat: areacode传入
---
src/api/dataCenter/dataCenter.js | 3 ++-
src/axios.js | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/api/dataCenter/dataCenter.js b/src/api/dataCenter/dataCenter.js
index e4e5b32..c6ed8e1 100644
--- a/src/api/dataCenter/dataCenter.js
+++ b/src/api/dataCenter/dataCenter.js
@@ -87,6 +87,7 @@
url: `/drone-device-core/wayline/api/v1/workspaces/getJobIdsBySn`,
method: 'get',
params,
+ customize: params.areaCode
})
}
// 附件下载
@@ -104,4 +105,4 @@
method: 'post',
data: data,
})
-}
\ No newline at end of file
+}
diff --git a/src/axios.js b/src/axios.js
index d0039aa..4acc439 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -41,7 +41,7 @@
config.url = baseUrl + config.url;
}
//安全请求header
- config.headers['areaCode'] = store?.state?.user?.userInfo?.detail?.areaCode;
+ config.headers['areaCode'] = config?.params?.areaCode || store?.state?.user?.userInfo?.detail?.areaCode;
config.headers['Blade-Requested-With'] = 'BladeHttpRequest';
//headers判断是否需要
const authorization = config.authorization === false;
--
Gitblit v1.9.3