fixing list tree registry by system

This commit is contained in:
Warunee Tamkoo 2024-08-19 16:26:45 +07:00
parent f8d7496b70
commit f5ffae0d87
3 changed files with 22 additions and 8 deletions

View file

@ -1,6 +1,7 @@
<script setup lang="ts">
import { ref, reactive, watch } from "vue";
import { useQuasar } from "quasar";
import { useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
@ -31,6 +32,7 @@ const {
dialogConfirm,
} = useCounterMixin();
const route = useRoute();
/**props*/
const modal = defineModel<boolean>("modal", { required: true });
const props = defineProps({
@ -227,7 +229,7 @@ async function fetchOrganizationActive() {
async function fetchDataTree(id: string) {
showLoader();
await http
.get(config.API.orgByid(id.toString()))
.get(config.API.orgByIdSystem(id.toString(), route.meta.Key))
.then((res) => {
const data = res.data.result;
if (data) {