@Watch('$route') routechange(to: any, from: any) { //参数不相等 if (to.query.name!=from.query.name) {//todo
} }