From 3c500457fb8d93f32f48344efcf0c7a6f79fb834 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 30 May 2024 11:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0Referer1?= 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 ad0fd2f8c..1c49f58e7 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] } }) }