Skip to content

Commit b98be79

Browse files
committed
71
1 parent 3700fc6 commit b98be79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/TodoList.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<script>
4343
import { useRouter } from 'vue-router';
4444
import Modal from '@/components/DeleteModal.vue';
45-
import { ref } from 'vue';
45+
import { ref, useContext } from 'vue';
4646
import List from '@/components/List.vue';
4747
4848
export default {
@@ -57,7 +57,8 @@ export default {
5757
}
5858
},
5959
emits: ['toggle-todo', 'delete-todo'],
60-
setup(props, { emit }) {
60+
setup() {
61+
const { emit } = useContext();
6162
const router = useRouter();
6263
const showModal = ref(false);
6364
const todoDeleteId = ref(null);

0 commit comments

Comments
 (0)