@byteluck-fe/model-driven-core-all 3.0.0-beta.5 → 4.34.0-lx1

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.
@@ -124,7 +124,6 @@ function _ts_generator(thisArg, body) {
124
124
  }
125
125
  import { getHackerControl } from './getHackerControl';
126
126
  import { nativeFetch, loadRemoteControl } from './loadRemoteScripts';
127
- import { getLocaleText } from '@byteluck-fe/locale-message';
128
127
  export function registerByteluckControls(url, payload) {
129
128
  return _registerByteluckControls.apply(this, arguments);
130
129
  }
@@ -153,7 +152,7 @@ function _registerByteluckControls() {
153
152
  components = JSON.parse(componentsStr);
154
153
  return [
155
154
  4,
156
- loadRemoteControl("".concat(url, "/").concat(payload.type, ".js?v=").concat(version, "&").concat(payload.isPc === false ? 'mobile' : 'desktop'), payload.globalModules)
155
+ loadRemoteControl("".concat(url, "/").concat(payload.type, ".js?v=").concat(version), payload.globalModules)
157
156
  ];
158
157
  case 2:
159
158
  controls = _state.sent();
@@ -166,7 +165,7 @@ function _registerByteluckControls() {
166
165
  }
167
166
  });
168
167
  if (control === undefined) {
169
- control = getHackerControl(item.id, payload.type, getLocaleText('CMD.loadCtrlError', null, '内置组件加载错误'));
168
+ control = getHackerControl(item.id, payload.type, '内置组件加载错误');
170
169
  }
171
170
  byteluckControls.set(item.id, {
172
171
  props: item,
@@ -212,7 +212,7 @@ function _registerCustomControls() {
212
212
  } else {
213
213
  url = item.designer;
214
214
  }
215
- url += '?v=' + item.version + '&' + (payload.isPc === false ? 'mobile' : 'desktop');
215
+ url += '?v=' + item.version;
216
216
  return [
217
217
  4,
218
218
  loadRemoteControl(url, refLibs)