@byteluck-fe/model-driven-core-all 4.41.0-lx0 → 5.3.1-1-zt

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,6 +120,7 @@ function _ts_generator(thisArg, body) {
120
120
  }
121
121
  import { getHackerControl } from './getHackerControl';
122
122
  import { nativeFetch, loadRemoteControl } from './loadRemoteScripts';
123
+ import { getLocaleText } from '@byteluck-fe/locale-message';
123
124
  export function registerByteluckControls(url, payload) {
124
125
  return _async_to_generator(function() {
125
126
  var version, byteluckControls, componentsStr, components, controls;
@@ -145,7 +146,7 @@ export function registerByteluckControls(url, payload) {
145
146
  components = JSON.parse(componentsStr);
146
147
  return [
147
148
  4,
148
- loadRemoteControl("".concat(url, "/").concat(payload.type, ".js?v=").concat(version), payload.globalModules)
149
+ loadRemoteControl("".concat(url, "/").concat(payload.type, ".js?v=").concat(version, "&").concat(payload.isPc === false ? 'mobile' : 'desktop'), payload.globalModules)
149
150
  ];
150
151
  case 2:
151
152
  controls = _state.sent();
@@ -158,7 +159,7 @@ export function registerByteluckControls(url, payload) {
158
159
  }
159
160
  });
160
161
  if (control === undefined) {
161
- control = getHackerControl(item.id, payload.type, '内置组件加载错误');
162
+ control = getHackerControl(item.id, payload.type, getLocaleText('CMD.loadCtrlError', null, '内置组件加载错误'));
162
163
  }
163
164
  byteluckControls.set(item.id, {
164
165
  props: item,
@@ -205,7 +205,7 @@ export function registerCustomControls(componentList, components, refLibs, paylo
205
205
  } else {
206
206
  url = item.designer;
207
207
  }
208
- url += '?v=' + item.version;
208
+ url += '?v=' + item.version + '&' + (payload.isPc === false ? 'mobile' : 'desktop');
209
209
  return [
210
210
  4,
211
211
  loadRemoteControl(url, refLibs)