From cac48cc2262020446a91b45d89655f4e977decf1 Mon Sep 17 00:00:00 2001
From: Administrator <1051256694@qq.com>
Date: 星期一, 06 四月 2026 18:43:03 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/common.js | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/main/webapp/static/js/common.js b/src/main/webapp/static/js/common.js
index 21b1408..422243f 100644
--- a/src/main/webapp/static/js/common.js
+++ b/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;
--
Gitblit v1.9.1