this.$route.query里的对象属性打印显示undfined

解决,在onReady()回调函数里获取

 this.$router.onReady(() => {
          let theRequest = this.$route.query;
          let { changType, fromUrl, processId, taskId, taskName, lang } =
            theRequest;
          this.change = this.$route.query.change;
     
        });

你可能感兴趣的:(前端,javascript)