[update] 导入请求头增加language
This commit is contained in:
+6
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user