# 页面路由 router

手机 手表

# 接口声明

无需声明

# 导入模块

import router from '@system.router'const router = require('@system.router')
1

# 接口定义

# router.push(OBJECT)

跳转到应用内的某个页面,页面栈层数没有限制

注意:不能跳到 tabBar 页面

# 参数:

参数 类型 必填 说明
uri String 不支持 schema 为 http/https/internal 的页面跳转;支持 deeplink 的方式跳转到快应用或原生应用。
# 示例:
handleItemClick() {  
 let obj = {  
 uri: 'testapp://test.vivo.com/page_1?key=value&key_1=value1'  
 }  
 let result = router.push(obj);  
 console.log("handleItemClick", result)  
}
1
2
3
4
5
6
7