@cloudbase/framework-plugin-low-code 0.6.65 → 0.6.66

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.
Files changed (2) hide show
  1. package/lib/index.js +18 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -962,6 +962,7 @@ class LowCodePlugin extends framework_core_1.Plugin {
962
962
  });
963
963
  }
964
964
  _postProcessAdminPortal() {
965
+ var _a, _b;
965
966
  return __awaiter(this, void 0, void 0, function* () {
966
967
  const { appId, buildTypeList, mainAppSerializeData, deployOptions, } = this._resolvedInputs;
967
968
  if (common_2.buildAsAdminPortalByBuildType(buildTypeList)) {
@@ -997,6 +998,23 @@ class LowCodePlugin extends framework_core_1.Plugin {
997
998
  catch (e) {
998
999
  this.api.logger.error('门户路由注册失败: ', e);
999
1000
  }
1001
+ try {
1002
+ if (((_b = (_a = this._resolvedInputs) === null || _a === void 0 ? void 0 : _a.deployOptions) === null || _b === void 0 ? void 0 : _b.mode) === types_1.DEPLOY_MODE.UPLOAD) {
1003
+ yield this.api.cloudbaseManager
1004
+ .commonService('lowcode', '2021-01-08')
1005
+ .call({
1006
+ Action: 'PublishAppCustomUrl',
1007
+ Param: {
1008
+ EnvId: this.api.envId,
1009
+ WeAppId: this._resolvedInputs.appId,
1010
+ },
1011
+ });
1012
+ }
1013
+ this.api.logger.info('PublishAppCustomUrl成功');
1014
+ }
1015
+ catch (e) {
1016
+ this.api.logger.error('PublishAppCustomUrl失败: ', e);
1017
+ }
1000
1018
  }
1001
1019
  });
1002
1020
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/framework-plugin-low-code",
3
- "version": "0.6.65",
3
+ "version": "0.6.66",
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",