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] } }) }