this.$message.open({
        key: 'noticeInfo',
        content: h => (
          <span>
            下载任务已提交,请前往
            <span style="color:#1890ff;cursor:pointer;" onClick={this.gotoReportPage}>
              报表中心
            </span>
            查看进度
          </span>
        )
      })



   beforeDestroy() {
    this.$message.destroy()
  },
  deactivated() {
    console.log('beforeRouteLeave  resultPage..')
    this.$message.close('exportNotice')
    // this.$notification.destroy()
  },


  this.$notification.open({
        key: 'exportNotice',
        class: 'myExportNotice',
        // duration: 9999,
        message: h => (
          <a-alert
            class="my-alert"
            type="success"
            message={
              <span>
                下载任务已提交,请前往
                <span style="color:#1890ff;cursor:pointer;" onClick={this.gotoReportPage}>
                  {' '}
                  报表中心{' '}
                </span>{' '}
                查看进度
              </span>
            }
          ></a-alert>
        ),
        onClick: () => {
          console.log('Notification Clicked!')
        }
      })

 

相关文章:

  • 2021-05-24
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
  • 2021-07-07
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-22
相关资源
相似解决方案