fixing req IDP & registry

This commit is contained in:
Warunee Tamkoo 2024-11-12 14:37:53 +07:00
parent fe501f6e1b
commit 39fa08b0f4
2 changed files with 14 additions and 8 deletions

View file

@ -15,6 +15,7 @@ import type {
} from "@/modules/04_registryPerson/interface/index/Main";
import type { DataListsIDP } from "@/modules/04_registryPerson/interface/response/Main";
const props = defineProps<{ isIdp: boolean | null }>();
const $q = useQuasar();
const router = useRouter();
const route = useRoute();
@ -283,9 +284,8 @@ watch(
}
);
/** HooK lifecycle ทำงานเมื่อมีการเรียกใช้งาน Componenets*/
onMounted(() => {
fetchData();
props.isIdp && fetchData();
});
</script>