vue async/await同步

  async created() {
   
    await getList({}).then((response) => {
      console.log(response)
      this.Data = response
    })

    this.change()
  },
methods: {
    change() { // 会议选择框选择
      console.log('================-start')
      console.log(this.Data)
      console.log('================-end')
    },

猜你喜欢

转载自blog.csdn.net/jack_bob/article/details/105300268
今日推荐