fixing bug

This commit is contained in:
Warunee Tamkoo 2024-08-05 12:17:04 +07:00
parent 7aa9782b7a
commit e351d207a6
7 changed files with 8 additions and 10 deletions

View file

@ -144,7 +144,7 @@ watch(
);
onMounted(() => {
if (checkPermission(route)?.attrIsList) fetchList();
fetchList();
});
</script>

View file

@ -202,7 +202,7 @@ watch(
);
onMounted(async () => {
if (checkPermission(route)?.attrIsList) fetchData();
fetchData();
});
</script>

View file

@ -340,7 +340,7 @@ watch(
);
onMounted(async () => {
if (checkPermission(route)?.attrIsList) getData();
getData();
});
</script>

View file

@ -123,7 +123,7 @@ watch(
);
onMounted(() => {
if (checkPermission(route)?.attrIsList) fetchList();
fetchList();
});
</script>

View file

@ -191,7 +191,7 @@ function onDelete(data: DataStrategic) {
/** ดึงข้อมูลเมื่ออยู่ในหน้า */
onMounted(() => {
if (checkPermission(route)?.attrIsList) fetchDataTree();
fetchDataTree();
});
</script>
<template>

View file

@ -196,7 +196,7 @@ function onClickHistory(id: string) {
}
onMounted(() => {
if (checkPermission(route)?.attrIsList) fetchActive();
fetchActive();
});
</script>

View file

@ -221,10 +221,8 @@ function onClickHistory(id: string) {
}
onMounted(async () => {
if (checkPermission(route)?.attrIsList) {
await getOptions();
await fetchList();
}
await getOptions();
await fetchList();
});
</script>