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(() => {
|
onMounted(() => {
|
||||||
if (checkPermission(route)?.attrIsList) fetchList();
|
fetchList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ watch(
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (checkPermission(route)?.attrIsList) fetchData();
|
fetchData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,7 @@ watch(
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (checkPermission(route)?.attrIsList) getData();
|
getData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ watch(
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (checkPermission(route)?.attrIsList) fetchList();
|
fetchList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,7 @@ function onDelete(data: DataStrategic) {
|
||||||
|
|
||||||
/** ดึงข้อมูลเมื่ออยู่ในหน้า */
|
/** ดึงข้อมูลเมื่ออยู่ในหน้า */
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (checkPermission(route)?.attrIsList) fetchDataTree();
|
fetchDataTree();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ function onClickHistory(id: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (checkPermission(route)?.attrIsList) fetchActive();
|
fetchActive();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue