jazz
2023-12-08 bf4dca5344dee1a84b75d9993f4dfc59de3f3ee9
src/pages/room/list.vue
@@ -60,6 +60,7 @@
  computed: {
  },
  activated() {},
  mounted() {
    console.log('roomList mounted')
    this.init()
@@ -126,6 +127,15 @@
    },
    // 跳转详情
    selectRoom(item = {}) {
      // console.log(this.$router.options.routes)
      // this.$router.options.routes
      if (this.$router && this.$router.options && this.$router.options.routes) {
        this.$router.options.routes.forEach((o) => {
          if (o.name === 'roomDetail') {
            o.meta && (o.meta.isPush = true)
          }
        })
      }
      this.$router.push({
        path: `./room/detail?id=${item.id || ''}`
      })