|
|
@@ -62,6 +62,12 @@ export default class Basic extends Component {
|
|
|
// "Content-Type": "application/json; charset=UTF-8"
|
|
|
}).then((response) => {
|
|
|
if (response.success) {
|
|
|
+ if(response.data.length==0){
|
|
|
+ message.error('获取数据失败');
|
|
|
+ this.setState({
|
|
|
+ loading: false,
|
|
|
+ })
|
|
|
+ }
|
|
|
let dataSource = response.data[0];
|
|
|
DEPART = dataSource.DEPART;
|
|
|
USERCOUNT = dataSource.USERCOUNT;
|