Browse Source

加Referer1

master_hella_20240701
zhang_li 6 months ago
parent
commit
3c500457fb
  1. 4
      src/config/axios/index.ts

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

Loading…
Cancel
Save