fixing bug
This commit is contained in:
parent
7aa9782b7a
commit
e351d207a6
7 changed files with 8 additions and 10 deletions
|
|
@ -144,7 +144,7 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(() => {
|
||||
if (checkPermission(route)?.attrIsList) fetchList();
|
||||
fetchList();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(async () => {
|
||||
if (checkPermission(route)?.attrIsList) fetchData();
|
||||
fetchData();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -340,7 +340,7 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(async () => {
|
||||
if (checkPermission(route)?.attrIsList) getData();
|
||||
getData();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ watch(
|
|||
);
|
||||
|
||||
onMounted(() => {
|
||||
if (checkPermission(route)?.attrIsList) fetchList();
|
||||
fetchList();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ function onDelete(data: DataStrategic) {
|
|||
|
||||
/** ดึงข้อมูลเมื่ออยู่ในหน้า */
|
||||
onMounted(() => {
|
||||
if (checkPermission(route)?.attrIsList) fetchDataTree();
|
||||
fetchDataTree();
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ function onClickHistory(id: string) {
|
|||
}
|
||||
|
||||
onMounted(() => {
|
||||
if (checkPermission(route)?.attrIsList) fetchActive();
|
||||
fetchActive();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -221,10 +221,8 @@ function onClickHistory(id: string) {
|
|||
}
|
||||
|
||||
onMounted(async () => {
|
||||
if (checkPermission(route)?.attrIsList) {
|
||||
await getOptions();
|
||||
await fetchList();
|
||||
}
|
||||
await getOptions();
|
||||
await fetchList();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue