This commit is contained in:
dhr
2025-08-21 18:38:02 +08:00
parent 525733b9e5
commit 37c914c662
3 changed files with 27 additions and 7 deletions

View File

@ -557,8 +557,18 @@ const handleFileRemove = (file: UploadFile) => {
console.log('移除文件:', file);
};
onMounted(() => {
getList();
// 监听项目id刷新数据
const listeningProject = watch(
() => currentProject.value?.id,
(nid, oid) => {
queryParams.value.projectId = nid;
form.value.projectId = nid;
getList();
}
);
onUnmounted(() => {
listeningProject();
});
</script>