How to use the @alifd/next.Message.error function in @alifd/next

To help you get started, we’ve selected a few @alifd/next examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / nacos / console / src / main / resources / static / console-fe / src / pages / ServiceManagement / ServiceDetail / EditInstanceDialog.js View on Github external
success: res => {
        if (res !== 'ok') {
          Message.error(res);
          return;
        }
        this.hide();
        getInstanceList();
      },
      complete: () => closeLoading(),
github jeryqwq / OrderManage / client / src / pages / ChargeBack / components / ChargeBackTable / index.js View on Github external
UserAjax.getChildrenCate(val).then((res)=>{
            if(res.data.status===0){
              this.setState({
                parentId:val,
                categoryData:res.data.data
              })
            }else{
              Message.error("该分类无子分类")
            }
          })
        }}
github alibaba / nacos / console / src / main / resources / static / console-fe / src / pages / ServiceManagement / ServiceDetail / EditClusterDialog.js View on Github external
success: res => {
        if (res !== 'ok') {
          Message.error(res);
          return;
        }
        this.hide();
        getServiceDetail();
      },
      complete: () => closeLoading(),
github alibaba / ice / react-materials / scaffolds / ice-design-pro / src / store / userLogout / action.js View on Github external
return async (dispatch) => {
    dispatch(userLogoutRequest());
    try {
      const response = await postUserLogout();

      dispatch(userLogoutSuccess(response.data));

      if (response.data.status === 200) {
        Message.success('已登出');
        setAuthority(response.data.currentAuthority);
        reloadAuthorized();
        dispatch(push('/user/login'));
      } else {
        Message.error('请稍后重试');
      }
    } catch (error) {
      dispatch(userLogoutFailure(error));
    }
  };
};
github nacos-group / nacos-sync / nacossync-console / src / main / resources / static / console-fe / src / utils / request.js View on Github external
}, (error) => {
    if (error.response) {
      const { status } = error.response;
      Message.error(`HTTP ERROR: ${status}`);
    } else {
      Message.error(API_GENERAL_ERROR_MESSAGE);
    }
    return Promise.reject(error);
  });
github FirefoxBar / HeaderEditor / src / options / components / importAndExport / index.tsx View on Github external
file.load('.json').then(content => {
      try {
        this.importRef.current!.show(JSON.parse(content));
      } catch (e) {
        Message.error(e.message);
      }
    });
  }
github alibaba / nacos / console / src / main / resources / static / console-fe / src / pages / ConfigurationManagement / ConfigEditor / NewConfigEditor.js View on Github external
getCodeVal() {
    const { locale = {} } = this.props;
    const { type, content } = this.state.form;
    const codeVal = this.monacoEditor ? this.monacoEditor.getValue() : content;
    if (!codeVal) {
      Message.error({
        content: locale.submitFailed,
        align: 'cc cc',
      });
      return false;
    }
    return codeVal;
  }