Skip to content

Commit

Permalink
fix map
Browse files Browse the repository at this point in the history
  • Loading branch information
liziwl committed Dec 10, 2023
1 parent 13f6941 commit 8522105
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions docs/.vuepress/components/TabView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<div class="tab-container">
<!-- 第一个 div 根据 value 控制显示与隐藏 -->
<div v-if="currentSelect === 'bus-location'">
<div class="bus-location-hint">位置每5秒自动刷新。Location refreshes automatically every 5 seconds.</div>
<RealtimeMap />
<div class="bus-location-hint" v-if="showMapChart" >位置每5秒自动刷新。Location refreshes automatically every 5 seconds.</div>
<RealtimeMap v-if="showMapChart" />
<BusChartVue />
</div>

Expand Down Expand Up @@ -74,13 +74,7 @@ export default {
currentSelect.value = tabOptionValue;
};
if (!props.isMapTabEnabled) {
currentSelect.value = 'timetable';
initSelect.value = 'timetable';
// 移除第一个元素
tabOptions.value.shift();
}
let showMapChart = props.isMapTabEnabled;
return {
initSelect,
Expand Down

0 comments on commit 8522105

Please sign in to comment.