#
Junjie
15 小时以前 58fcb9757cd4885ba101c0480c3c10320e10a533
#
1个文件已修改
15 ■■■■■ 已修改文件
src/main/webapp/static/js/common.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/common.js
@@ -755,8 +755,21 @@
        window.layer.__wcsI18nWrapped = true;
    }
    function hasElementLocaleMessages() {
        var key;
        if (!state.ready || !state.messages) {
            return false;
        }
        for (key in state.messages) {
            if (Object.prototype.hasOwnProperty.call(state.messages, key) && key.indexOf("el.") === 0) {
                return true;
            }
        }
        return false;
    }
    function wrapElement() {
        if (!window.ELEMENT || window.ELEMENT.__wcsI18nWrapped) {
        if (!window.ELEMENT || window.ELEMENT.__wcsI18nWrapped || !hasElementLocaleMessages()) {
            return;
        }
        var element = window.ELEMENT;