闫增涛
2024-03-20 ecbc81c918a288dc752b1634b3f545f795d992aa
custom-tab-bar/index.js
@@ -8,6 +8,7 @@
  methods: {
    onChange(event) {
      this.setData({ active: event.detail.value });
      console.log(this.data.active);
      wx.switchTab({
        url: this.data.list[event.detail.value].url.startsWith('/')
          ? this.data.list[event.detail.value].url