diff --git a/project/p1/src/App.js b/project/p1/src/App.js index 447906ca2..0543286fa 100644 --- a/project/p1/src/App.js +++ b/project/p1/src/App.js @@ -20,5 +20,4 @@ class App extends React.Component{ ) } } - export default App; diff --git a/project/p2/src/App.js b/project/p2/src/App.js index aba99159d..d28a7398f 100644 --- a/project/p2/src/App.js +++ b/project/p2/src/App.js @@ -8,12 +8,19 @@ class App extends React.Component{ super(); this.state={ bShow:true, - goods:[{ + goods1:[{ id:1,title:"呵呵1" },{ id:2,title:"呵呵2" },{ id:3,title:"呵呵3" + }], + goods2:[{ + id:1,title:"哈哈1" + },{ + id:2,title:"哈哈2" + },{ + id:3,title:"哈哈3" }] } } @@ -35,18 +42,27 @@ class App extends React.Component{