File tree 2 files changed +20
-13
lines changed
2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 16
16
<script >
17
17
import data from ' @/data'
18
18
import store from ' @/store'
19
- import Todo from ' @/models/Todo '
19
+ import User from ' @/models/User '
20
20
import AppHeader from ' ./AppHeader'
21
21
import AppDescription from ' ./AppDescription'
22
22
import UsersSection from ' ./UsersSection'
@@ -45,7 +45,7 @@ export default {
45
45
// should be the response from the API Backend.
46
46
const initialData = data
47
47
48
- Todo .insert ({ data: initialData })
48
+ User .insert ({ data: initialData })
49
49
}
50
50
}
51
51
</script >
Original file line number Diff line number Diff line change 2
2
// in the real world.
3
3
export default [
4
4
{
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
+ ]
8
16
} ,
9
17
{
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
+ ]
18
25
}
19
26
]
You can’t perform that action at this time.
0 commit comments