element-ui解决notify速度太快会重叠的问题

data(){
    return{
        notifyPromise: Promise.resolve(),
    }
},
methods:{
    zz(){
        this.notifyPromise = this.notifyPromise.then(this.$nextTick).then(() => {
            this.$notify.error({
              title: '题目:' + this.tableSelectionQuestionList[i].questionId + ' 添加试题篮失败!' ,
              message: '',
              duration: 3000
            })
          })
    }
}
Copyright © TaoQZ 2019 all right reserved,powered by Gitbook作者联系方式:taoqingzhou@gmail.com 修订时间: 2024-11-19 17:25:44

results matching ""

    No results matching ""

    results matching ""

      No results matching ""