合并
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user