Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ Alternately, you can link it directly from a CDN:
},
asyncComputed: {
async sum () {
const total = this.x + this.y
await new Promise(resolve => setTimeout(resolve, 1000))
return this.x + this.y
return total
}
}
})
Expand Down Expand Up @@ -164,8 +165,9 @@ export default {
the sum of the values to which you set vm.x and vm.y the previous second.
*/
async sum () {
const total = this.x + this.y
await new Promise(resolve => setTimeout(resolve, 1000))
return this.x + this.y
return total
}
}
}
Expand Down