

确定 route.name 运行时是 字符串,强制转换 为字符串。
removeRoute(id: string) {
this.dynamRoute= this.dynamRoute.filter(route => !(route.name as string).includes(id))
localStorage.setItem('dynamRoute', JSON.stringify(this.dynamRoute))
delete this.tempForm[id] // 删除 tempForm中对应的表单参数
}
![[leetcode] shortest-subarray-with-sum-at-least-k 和至少为 K 的最短子数组](https://i-blog.csdnimg.cn/direct/4a0c5c922c984fb692053ab1063c16a0.png)












![[leetcode]subarray-product-less-than-k 乘积小于K的子数组](https://i-blog.csdnimg.cn/direct/e910dccc494a460cbe75e7e1be94cc16.png)





