您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

SAP UI5 Web Component不同React页面的跳转实现

2022/1/2 13:00:55 架构 字数 1904 阅读 799 来源 https://www.iteye.com/blogs/category/architecture

SAP UI5 Web Component不同React页面的跳转实现 (1) 从react-router-dom里导入Switch,Route和Redirect组件: ? (2) 路径/home指定成加载Home Component ,/detail则加载Detail Component. ? 文件Home.jsx和Detail.jsx分别实现Component: ? (3) 测试:url后加上/home,则加载home Component: ... UI5WebIDESAP成都研究院SAP Cloud PlatformABAP? JerryWang_SAP

(1) 从react-router-dom里导入Switch,Route和Redirect组件:

 

(2) 路径/home指定成加载Home Component ,/detail则加载Detail Component.

 

文件Home.jsx和Detail.jsx分别实现Component:

 

(3) 测试:url后加上/home,则加载home Component:

 

/detail组件的加载:


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶