This commit is contained in:
Warunee Tamkoo 2023-07-11 11:37:49 +07:00
parent 6d8c8e9750
commit 2317839c7a

View file

@ -309,7 +309,7 @@ const tittleHistory = ref<string>(
);
const filterHistory = ref<string>(""); //search data table history
const modalHistory = ref<boolean>(false); //modal
const profileId = ref<string>(route.params.id.toString());
const profileId = ref<string>(route.params.id ? route.params.id.toString():'');
const checkValidate = ref<boolean>(false); //validate data
const rows = ref<RequestItemsObject[]>([]);
const filter = ref<string>(""); //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))