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