watch {'$route.query.id'() {// ...}}
watch: {leaderName: {handler(val) {// ...},deep: true // 深度监听(耗费资源,非必要不用)}}
watch: {leaderName: {handler(val) {// ...},immediate: true // 默认为false, 为true则首次绑定时会触发监听}}