yuliang vor 2 Jahren
Ursprung
Commit
77db349c73
2 geänderte Dateien mit 13 neuen und 11 gelöschten Zeilen
  1. 12 10
      dist/yvan-ext.js
  2. 1 1
      dist/yvan-ext.js.map

+ 12 - 10
dist/yvan-ext.js

@@ -22434,16 +22434,18 @@ define(['exports', 'axios', 'qs', 'lodash', 'jquery', 'moment', 'recast', 'xlsx'
                         process.call(me_1, me_1, config);
                     });
                 }
-                if (!config.i18nPath && ((_a = config.$initParent) === null || _a === void 0 ? void 0 : _a.i18nPath)) {
-                    config.i18nPath = config.$initParent.i18nPath;
-                }
-                var WMSTranslate = window["WMSTranslate"];
-                if (WMSTranslate) {
-                    if (typeof window['viewTranslate'] === 'function') {
-                        window['viewTranslate'](config, config.text, "text");
-                        window['viewTranslate'](config, config.title, "title");
-                        window['viewTranslate'](config, config.header, "header");
-                        window['viewTranslate'](config, config.fieldLabel, "fieldLabel");
+                if (config) {
+                    if (!config.i18nPath && ((_a = config.$initParent) === null || _a === void 0 ? void 0 : _a.i18nPath)) {
+                        config.i18nPath = config.$initParent.i18nPath;
+                    }
+                    var WMSTranslate = window["WMSTranslate"];
+                    if (WMSTranslate) {
+                        if (typeof window['viewTranslate'] === 'function') {
+                            window['viewTranslate'](config, config.text, "text");
+                            window['viewTranslate'](config, config.title, "title");
+                            window['viewTranslate'](config, config.header, "header");
+                            window['viewTranslate'](config, config.fieldLabel, "fieldLabel");
+                        }
                     }
                 }
                 ct.call(this, config);

Datei-Diff unterdrückt, da er zu groß ist
+ 1 - 1
dist/yvan-ext.js.map