update 国际化传参修改

This commit is contained in:
赵霄
2023-11-13 17:59:06 +08:00
parent c4782479fb
commit ce2f80106b
+3 -4
View File
@@ -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
}
}
}