确定 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中对应的表单参数
}