vue 当前页面跳转当前页面

 watch: {
    $route(to, from) {
      // 监听相同路由下参数变化的时候,从而实现异步刷新
      // 重新获取数据
      this.pubilcInfo()
    }
  },
go_nex_pre_id(id) {
      this.$router.push({
          name: 'publicAssetsDetail',
          query: {
            id: id
          }
      })
    }
posted @ 2022-05-30 16:00  小小小小小前端  阅读(554)  评论(0编辑  收藏  举报