feature/2.15.1.2407.01-社保档案保存校验

This commit is contained in:
黎永顺 2024-08-19 16:37:46 +08:00
parent dfcd27771f
commit 55d39d6523
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class Index extends Component {
API[id ? "updateScheme" : "createScheme"](payload).then(({ status, data, errormsg }) => {
this.setState({ loading: false });
if (status) {
if (data.indexOf("\n") !== -1 && id) {
if (id && Object.prototype.toString.call(data) === "[object String]" && data.indexOf("\n") !== -1) {
this.setState({
baseValidateDialog: {
visible: true, baseChangeInfo: data,