update 国际化传参修改
This commit is contained in:
@@ -115,15 +115,14 @@ service.interceptors.request.use(config => {
|
||||
if (!language) {
|
||||
language = 'zh-cn'
|
||||
}
|
||||
const cut = language === 'zh-cn' ? 'cn' : 'us'
|
||||
config.headers.language = language
|
||||
const cut = language === 'zh-cn' ? 'zh' : 'en'
|
||||
config.headers.Language = cut
|
||||
// update-end-author:taoyan date:2020707 for:多租户
|
||||
if (config.method === 'get') {
|
||||
if (config.url.indexOf('sys/dict/getDictItems') < 0) {
|
||||
config.params = {
|
||||
_t: Date.parse(new Date()) / 1000,
|
||||
...config.params,
|
||||
cut
|
||||
...config.params
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user