Commit c1d1760d authored by liziwl's avatar liziwl
Browse files

移除微信的地图

parent 6f466d15
Loading
Loading
Loading
Loading
+17 −3
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@
<script>
import { ConfigProvider } from 'ant-design-vue';
import { Segmented } from 'ant-design-vue';
import { ref } from 'vue';
import { watch, ref } from 'vue';

export default {
  name: 'TabView',
@@ -44,7 +44,13 @@ export default {
    AConfigProvider: ConfigProvider,
    ASegmented: Segmented
  },
  setup() {
  props: {
    isMapTabEnabled: {
      type: Boolean,
      default: true,
    },
  },
  setup(props) {
    const initSelect = ref('bus-location');
    const currentSelect = ref('bus-location');
    const tabOptions = ref([
@@ -68,6 +74,14 @@ export default {
      currentSelect.value = tabOptionValue;
    };

    if (!props.isMapTabEnabled) {
      currentSelect.value = 'timetable';
      initSelect.value = 'timetable';
      // 移除第一个元素
      tabOptions.value.shift();
    }


    return {
      initSelect,
      currentSelect,
+1 −1
Original line number Diff line number Diff line
@@ -11,5 +11,5 @@ navbar: false
:::

<ClientOnly>
  <TabView></TabView>
  <TabView :isMapTabEnabled="false"></TabView>
</ClientOnly>