1
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-03-24 16:56:27 +08:00
parent 7fcbd7f983
commit 01206716ab
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ service.interceptors.request.use(
async config => {
path = router && router.app && router.app._route && router.app._route.path
config.headers['Content-Type'] = 'application/json;charset=UTF-8'
config.baseURL = process.env.NODE_ENV === 'prod' ? "https://api.irc.extimaging.com" : '/api'
config.headers['Self-Referer'] = window.location.href
var language = zzSessionStorage.getItem('lang')
config.headers['Accept-Language'] = language === 'en' ? 'en-US,en;q=0.5' : 'zh-CN,zh;q=0.9'
config.headers['TimeZoneId'] = moment.tz.guess()