Skip to content

Commit

Permalink
fix: 设计器后退异常
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Sep 25, 2024
1 parent 77cdb2d commit 3453f78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ router.get('/api/pageDesign', core.requireAuthentication, async function (req, r
locale = "zh-CN";
}
const page = await objectql.broker.call(`page.getLatestPageVersion`, {pageId: req.query.pageId});
const retUrl = __meteor_runtime_config__.ROOT_URL + '/app/admin/pages/view/' + req.query.pageId
const retUrl = req.query.retUrl || __meteor_runtime_config__.ROOT_URL + '/app/admin/pages/view/' + req.query.pageId
const steedosBuilderUrl = process.env.STEEDOS_BUILDER_URL || 'https://builder.steedos.cn';
const builderHost = `${steedosBuilderUrl}/amis?${assetUrl}retUrl=${retUrl}&locale=${locale}&pageType=${page.type}`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ router.get('/api/amisObjectFieldsDesign', core.requireAuthentication, async func
} else if (req.query.locale == "zh-cn") {
locale = "zh-CN";
}
const retUrl = __meteor_runtime_config__.ROOT_URL + '/app/admin/objects/view/' + req.query.oid
const retUrl = req.query.retUrl || __meteor_runtime_config__.ROOT_URL + '/app/admin/objects/view/' + req.query.oid
const steedosBuilderUrl = process.env.STEEDOS_BUILDER_URL || 'https://builder.steedos.cn';
const builderHost = `${steedosBuilderUrl}/object?${assetUrl}retUrl=${retUrl}&locale=${locale}&isObjectDesign=1&pType=objectDesign`;

Expand Down

0 comments on commit 3453f78

Please sign in to comment.