From 11aec87ce6b48e40e27081fab9b4822c43a99d2c Mon Sep 17 00:00:00 2001 From: Hiroaki Ninomiya Date: Wed, 25 Dec 2019 12:18:06 +0900 Subject: [PATCH] fix: make data user oriented. --- src/components/App.vue | 4 ++-- src/data.js | 29 ++++++++++++++++++----------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/components/App.vue b/src/components/App.vue index 055ac8b..82d1468 100644 --- a/src/components/App.vue +++ b/src/components/App.vue @@ -16,7 +16,7 @@ diff --git a/src/data.js b/src/data.js index 685b33e..b8e4e03 100644 --- a/src/data.js +++ b/src/data.js @@ -2,18 +2,25 @@ // in the real world. export default [ { - title: 'Create awesome application!', - done: false, - assignee: { name: 'John Doe' } + name: 'John Doe', + todos: [ + { + title: 'Create awesome application!', + done: false + }, + { + title: 'Read the documentation', + done: false + } + ] }, { - title: 'Read the documentation', - done: false, - assignee: { name: 'John Doe' } - }, - { - title: 'Star Vuex ORM repository', - done: false, - assignee: { name: 'Johnny Doe' } + name: 'Johnny Doe', + todos: [ + { + title: 'Star Vuex ORM repository', + done: false + } + ] } ]