[update] 导入请求头增加language

This commit is contained in:
lideqin
2024-07-31 15:40:32 +08:00
parent ad005173b2
commit ec05283dc8
4 changed files with 29 additions and 2 deletions
@@ -534,6 +534,12 @@ export default {
if (tenantid) {
head['tenant-id'] = tenantid
}
let language = localStorage.getItem('language') || ''
if (!language) {
language = 'zh-cn'
}
const cut = language === 'zh-cn' ? 'zh' : 'en'
head.Language = cut
return head
},
importUrl: function () {