chenlu
2025-06-18 f3d7e18f61408e5c9e33b015ae0c98bfde94ec7c
Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
2个文件已修改
14 ■■■■ 已修改文件
north-glass-erp/northglass-erp/src/lang/index.js 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/main.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
north-glass-erp/northglass-erp/src/lang/index.js
@@ -27,5 +27,11 @@
})
VxeUI.setI18n('zh-CN', zhCN)
VxeUI.setI18n('en-US', enUS)
VxeUI.setLanguage(localStorage.getItem('lang')==='zh-CN' ?  'zh-CN' : 'en-US' )
let lang = 'zh-CN'
if(localStorage.getItem('lang')==='zh-CN' || localStorage.getItem('lang') === null){
    lang = 'zh-CN'
}else{
    lang = 'en-US'
}
VxeUI.setLanguage(lang )
export default i18n
north-glass-erp/northglass-erp/src/main.js
@@ -34,10 +34,10 @@
app.use(VxeTable)
app.use(pinia)
app.use(router)
app.use(ElementPlus,{
    locale: (localStorage.getItem('lang') === 'zh-CN' || null)? zhCn  : null,
})
app.use(ElementPlus,{
    locale: (localStorage.getItem('lang') === 'zh-CN' ? zhCn  : localStorage.getItem('lang') === null ? zhCn : null),
})
app.use(i18n)