diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index c99d525..998f909 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -673,12 +673,12 @@ nextTick(() => { mapState.mapData = cloneDeep(merge(defaultMapData(), options)); // 处理数据格式转换 - isString(mapState.mapData.fileId) && (mapState.mapData.fileId = mapState.mapData.fileId.split(',')); + isString(mapState.mapData.fileId) && (mapState.mapData.fileId ? (mapState.mapData.fileId = mapState.mapData.fileId.split(',')) : []); mapState.mapData.mapTask.forEach(item => { - isString(item.fileId) && (item.fileId = item.fileId.split(',')); + isString(item.fileId) && (item.fileId ? (item.fileId = item.fileId.split(',')) : []); if (~~item.taskType == 1) { item?.mapTaskPreset?.forEach(childItem => { - isString(childItem.fileId) && (childItem.fileId = childItem.fileId.split(',')); + isString(childItem.fileId) && (childItem.fileId ? (childItem.fileId = childItem.fileId.split(',')) : []); }); } }); diff --git a/src/views/common/mapLogistic/MapLogisticModal.vue b/src/views/common/mapLogistic/MapLogisticModal.vue index 1733dd5..fffb0fa 100644 --- a/src/views/common/mapLogistic/MapLogisticModal.vue +++ b/src/views/common/mapLogistic/MapLogisticModal.vue @@ -48,7 +48,6 @@ state.isEdit = false; break; case 'edit': - props.title = '编辑科室'; state.isEdit = true; state.mapData = await getMapDataByCourierUserId(courierUserId); break;