有用这个组件的吗?Notification通知提醒框

Service.saveOrUpdateUserRoles({ queryobj }).then((data) => {

    console.log('WWWWW', data)
    if (data.success) {
      notification.success({
        message: '提示',
        description: '保存成功!',
        style: {
            width: 200,
          height: 200,
          backgroundColor: 'pink',
        },
      })
      console.log('XXXX', data)
      this.hideModelHandler()
    }
  })

这是我的代码,为什么不显示呢?添加class名也没添加上?

阅读 1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题