ljlong_2630 9 months ago
parent
commit
d8f06eb965
  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