Skip to content

Commit

Permalink
fix: error show msg (#1464)
Browse files Browse the repository at this point in the history
* fix: service input k8s

* fix: error show msg

---------

Co-authored-by: songyg <[email protected]>
  • Loading branch information
RainBondsongyg and songyg authored Jan 15, 2025
1 parent f94db43 commit 7137d32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pages/AddCluster/ClusterAppend/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-param-reassign */
/* eslint-disable consistent-return */
import { Card, Form, Row, Steps, Col, Input, Button } from 'antd';
import { Card, Form, Row, Steps, Col, Input, Button, notification } from 'antd';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import React, { PureComponent } from 'react';
Expand Down Expand Up @@ -117,7 +117,10 @@ export default class ClusterLink extends PureComponent {
dispatch(routerRedux.push(`/enterprise/${eid || GlobalUtile.getCurrEnterpriseId()}/provider/${provider}/kclusters?event_id=${res.bean.event_id}`));
}
},
handleError: errs => {
handleError: err => {
notification.error({
message: err.data.msg_show,
});
}
});
});
Expand Down

0 comments on commit 7137d32

Please sign in to comment.