Skip to content

Commit

Permalink
fix: empty path array map error
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed May 9, 2022
1 parent e277459 commit 4d6c6e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/overlay/bm-polygon/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
])
const { ready } = useLife()
useBaseMapEffect((map: BMapGL.Map) => {
if(!props.path.length) return
const {
strokeColor,
strokeWeight,
Expand Down
1 change: 1 addition & 0 deletions src/components/overlay/bm-polyline/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
])
const { ready } = useLife()
useBaseMapEffect((map: BMapGL.Map) => {
if(!props.path.length) return
const {
strokeColor,
strokeWeight,
Expand Down

0 comments on commit 4d6c6e6

Please sign in to comment.