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