src/pages/room/list.vue
@@ -60,6 +60,7 @@ computed: { }, activated() {}, mounted() { console.log('roomList mounted') this.init() @@ -126,6 +127,16 @@ }, // 跳转详情 selectRoom(item = {}) { // console.log(this.$router.options.routes) // this.$router.options.routes localStorage.removeItem('curTreatId') 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 || ''}` })