mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-20 06:15:13 +00:00
async and Suspense
This commit is contained in:
@@ -21,10 +21,9 @@
|
||||
|
||||
<script>
|
||||
import { format } from 'date-fns';
|
||||
import axios from 'axios';
|
||||
|
||||
export default {
|
||||
setup(){
|
||||
async setup(){
|
||||
let emails = [
|
||||
{
|
||||
"id": 1,
|
||||
@@ -63,6 +62,8 @@
|
||||
"read": false
|
||||
}
|
||||
]
|
||||
await new Promise(resolve => setTimeout(resolve, 3000));
|
||||
|
||||
return {
|
||||
format,
|
||||
emails
|
||||
|
||||
Reference in New Issue
Block a user