mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-23 07:31:26 +00:00
Fix: Make emails and openedEmail reactive references
This commit is contained in:
@@ -31,7 +31,8 @@
|
|||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import MailView from '@/components/MailView.vue';
|
import MailView from '@/components/MailView.vue';
|
||||||
import ModalView from '@/components/ModalView.vue';
|
import ModalView from '@/components/ModalView.vue';
|
||||||
import { reactive } from 'vue';
|
|
||||||
|
import { ref, reactive } from 'vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
async setup(){
|
async setup(){
|
||||||
@@ -52,8 +53,8 @@
|
|||||||
return {
|
return {
|
||||||
emailSelection,
|
emailSelection,
|
||||||
format,
|
format,
|
||||||
emails,
|
emails: ref(emails),
|
||||||
openedEmail: null
|
openedEmail: ref(null)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user