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(() => { onMounted(() => {
if (checkPermission(route)?.attrIsList) fetchList(); fetchList();
}); });
</script> </script>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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