
我们点击 1 2 来回切换时,发现客户经理的列表不会重新请求(菜单中含有客户经理)
这时我们添加以下代码就可以了

watch: {
$route(route) {
this.getList()
}
},
/** 查询客户经理列表 */
getList() {
this.loading = true;
listManager(this.queryParams).then(response => {
this.managerList = response.rows;
this.total = response.total;
this.loading = false;
});
},
这时候,就会重新请求我们的数据列表接口.

![NSS [UUCTF 2022 新生赛]ez_upload](https://img-blog.csdnimg.cn/img_convert/adbb1e972f8d8d8043e9de6a862ea583.png)

















