From 42e7814f816bedba1a0ef8e8f8fb3df1f495c9db Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 05 Dec 2025 09:27:58 +0800
Subject: [PATCH] Merge branch 'feature/v8.0/8.0.4' into feature/v9.0/9.0.1
---
src/axios.js | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/axios.js b/src/axios.js
index 4acc439..3ef44cf 100644
--- a/src/axios.js
+++ b/src/axios.js
@@ -50,6 +50,25 @@
`${website.clientId}:${website.clientSecret}`
)}`;
}
+ // 后端的要求
+ if (router.currentRoute.value.path === '/job/jobstatistics'){
+ const userAreaCode = store?.state?.user?.userInfo?.detail?.areaCode
+ const paramsKey = config.method === 'get' ? 'params' : 'data';
+ const codeKey = config.method === 'get' ? 'areaCode' : 'area_code';
+ const paramCode = config?.params?.areaCode || config?.data?.area_code
+ try {
+ if (paramCode){
+ if (paramCode === userAreaCode) {
+ config[paramsKey][codeKey] = config.method === 'get' ? '' : undefined;
+ } else {
+ if (!Array.isArray(config[paramsKey])){
+ config[paramsKey] = {...config[paramsKey],[codeKey]: paramCode}
+ }
+ }
+ }
+ }catch (e) {}
+ }
+
//headers判断请求是否携带token
const meta = config.meta || {};
const isToken = meta.isToken === false;
--
Gitblit v1.9.3