diff --git a/src/modules/04_registry/components/Record.vue b/src/modules/04_registry/components/Record.vue index 5de5d5494..37ad44982 100644 --- a/src/modules/04_registry/components/Record.vue +++ b/src/modules/04_registry/components/Record.vue @@ -309,7 +309,7 @@ const tittleHistory = ref( ); const filterHistory = ref(""); //search data table history const modalHistory = ref(false); //modal ประวัติการแก้ไขข้อมูล -const profileId = ref(route.params.id.toString()); +const profileId = ref(route.params.id ? route.params.id.toString():''); const checkValidate = ref(false); //validate data ผ่านหรือไม่ const rows = ref([]); const filter = ref(""); //search data table @@ -478,7 +478,7 @@ onMounted(async () => { }); const fetchData = async () => { - if (profileId.value) { + if (profileId.value!='') { loaderPage(true); await http .get(config.API.profileNopaidId(profileId.value))