tmagic-editor icon indicating copy to clipboard operation
tmagic-editor copied to clipboard

在Page_A页面,如何跳转到Page_B页面

Open iventong opened this issue 1 year ago • 4 comments

目前开发的一个项目中,包含Page_A 页面和Page_B页面 如何实现页面跳转。

使用Core对象 setPage 方法设置页面,不生效。 app.setPage('page_5ca3e2bd');

如何实现跳转功能。是否只能 window.location.href这种方式进行跳转

iventong avatar Apr 14 '23 03:04 iventong

可以看看playground runtime里是怎么切换页面的

jia000 avatar Apr 17 '23 07:04 jia000

那page里能不能嵌套page? @jia000

toadprince avatar Apr 21 '23 06:04 toadprince

理论上是可以的,页面也只不过是一个组件,最简单的就是实现一个iframe组件就行了

jia000 avatar Apr 23 '23 06:04 jia000

@iventong 在预览页面,pageA跳转pageB实现了吗?

turtleSpirit avatar Nov 02 '23 09:11 turtleSpirit