diff --git a/src/App.vue b/src/App.vue index d825bff..ab99c77 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,14 +10,16 @@ const currentWorkingCategoryID = ref(1) const summaryRef = ref(null) const statusRef = ref(null) + const showCategoryRef = ref(null) const updateCurrentWorkingCategoryID = (id) =>{ currentWorkingCategoryID.value = id } - const refreshPage = () => { + const refreshPage = (session) => { summaryRef.value.loadData() statusRef.value.loadData() + showCategoryRef.value.loadCategory(session.practice_category_id) } @@ -32,7 +34,7 @@
- +
diff --git a/src/components/show_category.vue b/src/components/show_category.vue index 0e563cc..91ce879 100644 --- a/src/components/show_category.vue +++ b/src/components/show_category.vue @@ -32,6 +32,7 @@ }) watch(currentWorkingCategoryID, loadCategory) + defineExpose ({loadCategory})