解决VUE中document.body.scrollTop为0

解决VUE中document.body.scrollTop为0

  updated: function() {
    this.$nextTick(() => {
      var div = this.$refs.dialogue_box;
      setTimeout(() => {
        document.documentElement.scrollTop = div.scrollHeight;
      }, 500);
    });
  }

你可能感兴趣的:(解决VUE中document.body.scrollTop为0)