合并
This commit is contained in:
		| @ -198,7 +198,7 @@ const dialog = reactive<DialogOption>({ | ||||
|  | ||||
| const initFormData: ConstructionSchedulePlanForm = { | ||||
|   id: undefined, | ||||
|   projectId: currentProject.value.id, | ||||
|   projectId: currentProject.value?.id, | ||||
|   parentId: undefined, | ||||
|   nodeName: undefined, | ||||
|   projectStructure: undefined, | ||||
| @ -213,7 +213,7 @@ const initFormData: ConstructionSchedulePlanForm = { | ||||
| const data = reactive<PageData<ConstructionSchedulePlanForm, ConstructionSchedulePlanQuery>>({ | ||||
|   form: { ...initFormData }, | ||||
|   queryParams: { | ||||
|     projectId: currentProject.value.id, | ||||
|     projectId: currentProject.value?.id, | ||||
|     parentId: undefined, | ||||
|     nodeName: undefined, | ||||
|     status: undefined, | ||||
| @ -348,7 +348,7 @@ onMounted(() => { | ||||
|  | ||||
| //监听项目id刷新数据 | ||||
| const listeningProject = watch( | ||||
|   () => currentProject.value.id, | ||||
|   () => currentProject.value?.id, | ||||
|   (nid, oid) => { | ||||
|     queryParams.value.projectId = nid; | ||||
|     form.value.projectId = nid; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user