litian
2024-03-21 20a26aa0c12c05c3f96afc163c6532c6b1b5cf8e
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