@cloudbase/lowcode-builder 1.10.8 → 1.10.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
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",
@@ -49,8 +49,8 @@
49
49
  "dependencies": {
50
50
  "@babel/core": "7.21.4",
51
51
  "@babel/preset-env": "7.21.4",
52
- "@cloudbase/cals": "^1.2.10",
53
- "@cloudbase/lowcode-generator": "^1.8.37",
52
+ "@cloudbase/cals": "^1.2.11",
53
+ "@cloudbase/lowcode-generator": "^1.8.38",
54
54
  "axios": "^0.21.0",
55
55
  "chalk": "^2.4.2",
56
56
  "compare-versions": "^3.6.0",
@@ -550,10 +550,20 @@ Component({
550
550
  const pageId = toPagePath.length > 1 ? toPagePath[1] : toPagePath[0]
551
551
  const packageName = toPagePath.length > 1 ? toPagePath[0] : undefined
552
552
 
553
- app.redirectTo({
554
- pageId,
555
- packageName,
556
- })
553
+ try {
554
+ const path = app.__internal__.generatePageUrl({
555
+ pageId,
556
+ packageName,
557
+ })
558
+ wx.restartMiniProgram({
559
+ path
560
+ })
561
+ } catch (error) {
562
+ app.redirectTo({
563
+ pageId,
564
+ packageName,
565
+ })
566
+ }
557
567
  }
558
568
  },
559
569
  observers: {