Browse Source

接口添加Referer1参数

master
zhang_li 8 months ago
parent
commit
aa8b373eee
  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