diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue index c6e36d3bd..ff6138493 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/applicationShow/testApplication.vue @@ -409,8 +409,13 @@ const hasMatchedFields = computed(() => { /** 查询科室 */ const getLocationInfo = async () => { - const res = await getDepartmentList(); - orgOptions.value = res.data || []; + try { + const res = await getDepartmentList(); + orgOptions.value = Array.isArray(res.data) ? res.data : []; + } catch (e) { + console.warn('科室列表加载失败:', e.message); + orgOptions.value = []; + } }; const recursionFun = (targetDepartment) => {