deleteRouterHistory^8.13
将指定页面,从路由列表中删除。仅支持删除,jumpType为weex和h5的路由,其他方式跳转的路由不支持。 如果路由列表中存在多个,原生只删除从数组里面最后一个匹配到的页面
#请求参数
| Prop |
Type |
Required |
Default |
Comment |
viewTagList |
Array<String> |
Y |
N/A |
待删除的页面view tag列表 |
#接口调用示例
const parmas = {
viewTagList: ['c']
}
this.$bridge
.deleteRouterHistory(parmas)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数
| Prop |
Type |
Required |
Default |
Comment |
code |
Number |
Y |
N/A |
返回码, 0:success,-1001: 缺少参数viewTagList |
msg |
String |
N |
N/A |
返回信息 |
#接口返回示例
// 成功返回
{
code: 0,
msg: "成功"
}
// 失败返回
{
code: -1001,
msg: "缺少参数viewTagList"
}