@cloudbase/framework-plugin-low-code 0.7.17 → 0.7.18-alpha.0

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.
@@ -214,14 +214,7 @@ function translateStyleByHandler(style = {}, handler) {
214
214
  setStyleValue(result, key, value);
215
215
  }
216
216
  else if (value !== undefined && value !== null) {
217
- try {
218
-
219
217
  setStyleValue(result, key, handler(value));
220
- }catch(e){
221
- console.log(style,key,value)
222
- console.log(e)
223
- throw e
224
- }
225
218
  }
226
219
  return result;
227
220
  }, {});
@@ -264,7 +257,6 @@ function toREM(cssLen) {
264
257
  return calPxToREM(cssLen);
265
258
  }
266
259
  else {
267
- console.log(cssLen)
268
260
  throw new Error('cssLen type error');
269
261
  }
270
262
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/framework-plugin-low-code",
3
- "version": "0.7.17",
3
+ "version": "0.7.18-alpha.0",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -226,7 +226,6 @@ export async function getLoginConfig() {
226
226
  loginConfig = await response.json();
227
227
  } catch (e) {
228
228
  loginConfig = {};
229
- console.error(`加载登录配置${url}失败`, e);
230
229
  }
231
230
  return loginConfig;
232
231
  }
@@ -1,3 +1,11 @@
1
+ /**
2
+ * 当本应用是乾坤子应用是,publicPath需要设置为子应用的相对路径
3
+ * 这个变量时序重要需要先初始化
4
+ */
5
+ if (window.__POWERED_BY_QIANKUN__) {
6
+ __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
7
+ }
8
+
1
9
  import * as React from 'react'
2
10
  import * as ReactDOM from 'react-dom'
3
11
  import { _WEDA_CLOUD_SDK as WEDA_CLOUD_SDK, auth } from '@cloudbase/weda-client'