fix
This commit is contained in:
parent
0ab09928d3
commit
819536523c
@ -45,7 +45,7 @@ class Main extends Component {
|
||||
this.setState({products: json})
|
||||
})
|
||||
fetch(addr_prefix + "/api/cart").then(resp => resp.json()).then(json => {
|
||||
this.setState({cart: json})
|
||||
this.setState({cart: [...json, ...this.state.cart]})
|
||||
})
|
||||
fetch(addr_prefix + "/api/login_status").then(resp => resp.json()).then(json => {
|
||||
this.setState({login_status: json})
|
||||
|
Loading…
x
Reference in New Issue
Block a user