@cloudbase/framework-plugin-low-code 0.6.24 → 0.6.27

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.
package/lib/index.js CHANGED
@@ -591,7 +591,7 @@ class LowCodePlugin extends framework_core_1.Plugin {
591
591
  const { deployOptions, appId } = this._resolvedInputs;
592
592
  const isPreview = (deployOptions === null || deployOptions === void 0 ? void 0 : deployOptions.mode) === types_1.DEPLOY_MODE.PREVIEW;
593
593
  const link = common_2.buildAsAdminPortalByBuildType(this._resolvedInputs.buildTypeList)
594
- ? `https://${this._website.cdnDomain}/adminportal/#/app/${isPreview ? `${appId}-preview` : appId}?envType=${isPreview ? 'preivew' : 'prod'}`
594
+ ? `https://${this._website.cdnDomain}/adminportal/#/app/${isPreview ? `${appId}-preview` : appId}?envType=${isPreview ? 'preview' : 'prod'}`
595
595
  : this._gatewayConfig
596
596
  ? `https://${this._gatewayConfig.Domain + this._gatewayConfig.Path}`
597
597
  : `https://${this._website.cdnDomain +
@@ -954,14 +954,12 @@ class LowCodePlugin extends framework_core_1.Plugin {
954
954
  }
955
955
  return arr;
956
956
  }, []);
957
- if (!this._gatewayConfig) {
958
- (_b = this._resolvedInputs.mainAppSerializeData.pageInstanceList) === null || _b === void 0 ? void 0 : _b.forEach((page) => {
959
- rules.push({
960
- keyPrefixEquals: `${path.slice(1)}${page.id}`,
961
- replaceKeyWith: path,
962
- });
957
+ (_b = this._resolvedInputs.mainAppSerializeData.pageInstanceList) === null || _b === void 0 ? void 0 : _b.forEach((page) => {
958
+ rules.push({
959
+ keyPrefixEquals: `${path.slice(1)}${page.id}`,
960
+ replaceKeyWith: path,
963
961
  });
964
- }
962
+ });
965
963
  this._rules = rules;
966
964
  }
967
965
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/framework-plugin-low-code",
3
- "version": "0.6.24",
3
+ "version": "0.6.27",
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",
@@ -12,7 +12,7 @@ export default () => {
12
12
  <Router history={process.env.isAdminPortal? generateHashHistory({basename: "<%= basename %>"}) : history }>
13
13
  <Switch>
14
14
  <%= routerRenders %>
15
- {process.env.isAdminPortal && <Route children={() => <Redirect to={'/404'} />} />}
15
+ {process.env.isAdminPortal && false && <Route children={() => <Redirect to={'/404'} />} />}
16
16
  </Switch>
17
17
  </Router>
18
18
  )