From 7f766fa283637d9017a0dd585a9c60ec9d41db04 Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Wed, 7 Sep 2022 16:17:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=85=B0=20=E6=94=AF=E6=8C=81=E4=BA=A4?= =?UTF-8?q?=E6=8E=A5=20=E4=B8=8A=E7=BA=A7=E4=B8=8B=E7=BA=A7=20ID=E6=9F=A5?= =?UTF-8?q?=E6=89=BE=20=E4=BC=98=E5=85=88=E7=BA=A7=E4=B8=BA=E4=B8=8A?= =?UTF-8?q?=E7=BA=A7=E4=B8=8B=E7=BA=A7=20ID=20=E2=80=94>=20=E6=94=B6?= =?UTF-8?q?=E6=A0=B7=E5=91=98=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AMap/src/AMapDesigner/index.vue | 6 +++--- src/views/common/mapLogistic/MapLogisticModal.vue | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) 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;