This commit is contained in:
2025-07-28 18:46:48 +08:00
parent 09c8cf2333
commit ab8fb27e23
5 changed files with 20 additions and 13 deletions

View File

@ -292,6 +292,19 @@ const handleLandBlockChange = (val) => {
console.log(val);
getListRoad();
};
//监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value.id,
(nid, oid) => {
queryParams.value.projectId = nid;
getListLand();
getList();
}
);
onUnmounted(() => {
listeningProject();
});
onMounted(() => {
getListLand();
getList();