Skip to content

Commit

Permalink
docs: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Oct 17, 2022
1 parent cfe5967 commit d072e8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/zh/overlay/infowindow.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ import { InfoWindow } from 'vue3-baidu-map-gl'
const show1 = ref<boolean>(false)
const show2 = ref<boolean>(false)
const count = ref<number>(1)
setInterval(() => {
count.value += 1
},1000)
if(typeof window !== 'undefined'){
setInterval(() => {
count.value += 1
}, 1000)
}
</script>

<style>
Expand Down

0 comments on commit d072e8d

Please sign in to comment.