[vue] await nextTick();

  // 等DOM更新完
  await this.$nextTick();
  console.log(111);

相当于

this.$nextTick(()=>{
	console.log(111);
})

你可能感兴趣的:(vue2,vue.js,javascript,前端)