mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-24 07:55:34 +00:00
add ref to emails
This commit is contained in:
@@ -21,13 +21,14 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { format } from 'date-fns';
|
import { format } from 'date-fns';
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
async setup(){
|
async setup(){
|
||||||
await new Promise(resolve => setTimeout(resolve, 3000))
|
await new Promise(resolve => setTimeout(resolve, 3000))
|
||||||
return {
|
return {
|
||||||
format,
|
format,
|
||||||
"emails": [
|
"emails": ref([
|
||||||
{
|
{
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"from": "team@vuemastery.com",
|
"from": "team@vuemastery.com",
|
||||||
@@ -64,7 +65,7 @@
|
|||||||
"archived": true,
|
"archived": true,
|
||||||
"read": false
|
"read": false
|
||||||
}
|
}
|
||||||
]
|
])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
Reference in New Issue
Block a user