mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
Fix: Make emails and openedEmail reactive references
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
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 BulkActionBar from '@/components/BulkActionBar.vue';
|
import BulkActionBar from '@/components/BulkActionBar.vue';
|
||||||
import { reactive } from 'vue';
|
import { ref } from 'vue';
|
||||||
import useEmailSelection from '@/composables/use-email-selection'
|
import useEmailSelection from '@/composables/use-email-selection'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -42,8 +42,8 @@
|
|||||||
return {
|
return {
|
||||||
emailSelection: useEmailSelection(),
|
emailSelection: useEmailSelection(),
|
||||||
format,
|
format,
|
||||||
emails,
|
emails: ref(emails),
|
||||||
openedEmail: null
|
openedEmail: ref(null)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user