mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-03 12:48:45 +08:00
Locale: fix empty string (#2302)
This commit is contained in:
parent
b7c2fc4b25
commit
87699ef3ca
@ -22,7 +22,7 @@ let i18nHandler = function() {
|
||||
|
||||
export const t = function(path, options) {
|
||||
let value = i18nHandler.apply(this, arguments);
|
||||
if (value) return value;
|
||||
if (value !== null || value !== undefined) return value;
|
||||
|
||||
const array = path.split('.');
|
||||
let current = lang;
|
||||
|
Loading…
Reference in New Issue
Block a user