beforeRouteEnter (to, from, next) {
    console.log(1)
    getSubjects(to.query) // 接口
      .then(({ data, pagination }) => {
        console.log(5)
        next(vm => {
          console.log(7)
          vm.filter = Object.assign({}, to.query)
          vm.tableData = data
          console.log(4)
          vm.pagination = pagination
        })
      })
  },

  created() {
    console.log(2)
  },

  mounted() {
    console.log(3)
  },

在这里插入图片描述

图片【秘密基地的沙发】博主

Logo

前往低代码交流专区

更多推荐