修复报错
This commit is contained in:
parent
4a7c559c42
commit
cb953afc16
@ -1,33 +1,33 @@
|
||||
<template>
|
||||
<div class="bigdata-container">
|
||||
<BigdataMap ref="mapRef" />
|
||||
<!-- <BigdataMap ref="mapRef" />
|
||||
<BigdataHeader />
|
||||
<BigdataTabs />
|
||||
<BigdataVillageSelect />
|
||||
<VillageInfo v-if="currentTab === 1" />
|
||||
<BigdataLeft v-if="currentTab === 2" />
|
||||
<BigdataRight v-if="currentTab === 2" />
|
||||
<BigdataMarkerList />
|
||||
<BigdataMarkerList /> -->
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import BigdataMap from './components/bigdata-map.vue';
|
||||
import BigdataHeader from './components/bigdata-header.vue';
|
||||
import BigdataTabs from './components/bigdata-tabs.vue';
|
||||
import BigdataVillageSelect from './components/bigdata-village-select.vue';
|
||||
import VillageInfo from './components/village-info.vue';
|
||||
import BigdataMarkerList from './components/bigdata-marker-list.vue';
|
||||
import BigdataLeft from './components/bigdata-left.vue';
|
||||
import BigdataRight from './components/bigdata-right.vue';
|
||||
import bigdataEmitter from './bigdata-mitt';
|
||||
// import BigdataMap from './components/bigdata-map.vue';
|
||||
// import BigdataHeader from './components/bigdata-header.vue';
|
||||
// import BigdataTabs from './components/bigdata-tabs.vue';
|
||||
// import BigdataVillageSelect from './components/bigdata-village-select.vue';
|
||||
// import VillageInfo from './components/village-info.vue';
|
||||
// import BigdataMarkerList from './components/bigdata-marker-list.vue';
|
||||
// import BigdataLeft from './components/bigdata-left.vue';
|
||||
// import BigdataRight from './components/bigdata-right.vue';
|
||||
// import bigdataEmitter from './bigdata-mitt';
|
||||
const mapRef = ref(null);
|
||||
|
||||
const currentTab = ref(1);
|
||||
|
||||
bigdataEmitter.on('changeTab', (value) => {
|
||||
currentTab.value = value;
|
||||
});
|
||||
// bigdataEmitter.on('changeTab', (value) => {
|
||||
// currentTab.value = value;
|
||||
// });
|
||||
|
||||
onMounted(() => {
|
||||
mapRef.value.initMap();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user