From aa8b373eee8fca49150491482f96b5c5f0c40205 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 14 Mar 2024 13:40:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0Referer1?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/axios/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/axios/index.ts b/src/config/axios/index.ts index 69c5e72..32040e6 100644 --- a/src/config/axios/index.ts +++ b/src/config/axios/index.ts @@ -2,6 +2,7 @@ import { service } from './service' import { config } from './config' import { useCache } from '@/hooks/web/useCache' +import router from '@/router' const { default_headers } = config const { wsCache } = useCache() @@ -18,7 +19,8 @@ const request = (option: any) => { responseType: responseType, headers: { 'Content-Type': headersType || default_headers, - 'language': language + 'language': language, + 'Referer1': router.currentRoute.value.fullPath.split('?')[0] } }) }