@beisen-platform/export-form
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -292,5 +292,16 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
}).then(function (resp) { | ||
_this3.setState({ | ||
showLoading: false | ||
}); | ||
if (parseInt(resp.code) !== 200) { | ||
_this3.setState({ | ||
showLoading: false, | ||
showTip: true, | ||
tipInfo: { | ||
infoType: 'error', | ||
title: resp.message | ||
} | ||
}); | ||
} else { | ||
_this3.setState({ | ||
showLoading: false | ||
}); | ||
} | ||
@@ -297,0 +308,0 @@ _this3.afterSave(resp); |
{ | ||
"name": "@beisen-platform/export-form", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -219,3 +219,8 @@ import React,{ Component } from 'react'; | ||
fetchWithCors(formSaveUrl + '&exportFileType=' + this.state.value,{ method: 'POST', params: popOptions.searchData }).then(resp => { | ||
this.setState({showLoading: false}); | ||
if(parseInt(resp.code) !== 200) { | ||
this.setState({showLoading: false,showTip: true, tipInfo: { infoType: 'error',title: resp.message }}); | ||
}else { | ||
this.setState({showLoading: false}); | ||
} | ||
this.afterSave(resp); | ||
@@ -222,0 +227,0 @@ },error => { |
27357
652