This commit is contained in:
Warunee Tamkoo 2024-06-12 11:28:18 +07:00
parent 41cd0f50ff
commit 797d2015e7
3 changed files with 21 additions and 1 deletions

View file

@ -1099,6 +1099,23 @@ function fetchDataRole() {
});
}
const sys = ref<any[]>([]);
function fetchSys() {
showLoader();
http
.get(config.API.managementSysList)
.then((res) => {
sys.value = res.data.result;
console.log(sys.value);
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
function onSubmit() {
dialogConfirm($q, () => {
showLoader();
@ -1124,6 +1141,7 @@ function onSubmit() {
onMounted(() => {
fetchDataRole();
fetchSys();
});
</script>