From c775855ae8e84b83c07f28bc720d0fc049ec9140 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 22 Jan 2026 19:42:46 +0800
Subject: [PATCH] feat: zkxt api
---
applications/task-work-order/src/axios.js | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/applications/task-work-order/src/axios.js b/applications/task-work-order/src/axios.js
index 1c5d52c..eb97e97 100644
--- a/applications/task-work-order/src/axios.js
+++ b/applications/task-work-order/src/axios.js
@@ -52,24 +52,6 @@
if (!authorization) {
config.headers['Authorization'] = `Basic ${Base64.encode(`${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 || {}
--
Gitblit v1.9.3