File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 1616<script >
1717import data from ' @/data'
1818import store from ' @/store'
19- import Todo from ' @/models/Todo '
19+ import User from ' @/models/User '
2020import AppHeader from ' ./AppHeader'
2121import AppDescription from ' ./AppDescription'
2222import UsersSection from ' ./UsersSection'
@@ -45,7 +45,7 @@ export default {
4545 // should be the response from the API Backend.
4646 const initialData = data
4747
48- Todo .insert ({ data: initialData })
48+ User .insert ({ data: initialData })
4949 }
5050}
5151 </script >
Original file line number Diff line number Diff line change 22// in the real world.
33export default [
44 {
5- title : 'Create awesome application!' ,
6- done : false ,
7- assignee : { name : 'John Doe' }
5+ name : 'John Doe' ,
6+ todos : [
7+ {
8+ title : 'Create awesome application!' ,
9+ done : false
10+ } ,
11+ {
12+ title : 'Read the documentation' ,
13+ done : false
14+ }
15+ ]
816 } ,
917 {
10- title : 'Read the documentation' ,
11- done : false ,
12- assignee : { name : 'John Doe' }
13- } ,
14- {
15- title : 'Star Vuex ORM repository' ,
16- done : false ,
17- assignee : { name : 'Johnny Doe' }
18+ name : 'Johnny Doe' ,
19+ todos : [
20+ {
21+ title : 'Star Vuex ORM repository' ,
22+ done : false
23+ }
24+ ]
1825 }
1926]
You can’t perform that action at this time.
0 commit comments