设计出图

This commit is contained in:
2025-08-14 02:07:30 +08:00
98 changed files with 641 additions and 403 deletions

View File

@ -207,8 +207,8 @@ const formData = reactive<FormData>({
professional: '',
stage: '',
volume: '',
projectId: currentProject.value.id || '',
projectName: currentProject.value.name || '',
projectId: currentProject.value?.id || '',
projectName: currentProject.value?.name || '',
subprojectId: '',
subprojectName: '',
designer: '',
@ -243,7 +243,7 @@ watch(
);
// 通过项目获取子项目 - 监听项目 id 变化,可自动获取子项目
const getSubProject = async () => {
let res = await subProjectListAll(currentProject.value.id);
let res = await subProjectListAll(currentProject.value?.id);
subProjectList.value = res.data;
subProjectList.value.forEach((item: any) => {
subProjectMap.set(item.id, item.projectName);