Commit df9657b6 by lichao

JKWRD-105 核对订单页面残留

parent 393df976
...@@ -191,10 +191,15 @@ class FacePage extends Component { ...@@ -191,10 +191,15 @@ class FacePage extends Component {
const {data} = await this.props.dispatch({ const {data} = await this.props.dispatch({
type: 'goods/getOrderCounter', type: 'goods/getOrderCounter',
}); });
if (data && data.length) if (data && data.length) {
this.setState({ this.setState({
goodsArr: data, goodsArr: data,
}); });
} else {
this.setState({
goodsArr: [],
});
}
} catch (error) { } catch (error) {
Toast.show('当前网络存在异常'); Toast.show('当前网络存在异常');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment