het endpoint setting hak akses belum fix
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
// import encounter from "@/data/dummy/encounter.json";
|
||||
import typeUser from "@/data/dummy/keuangan.type_user.json";
|
||||
// import typeUser from "@/data/dummy/keuangan.type_user.json";
|
||||
import role_menu from "@/data/dummy/keuangan.role_menu.json";
|
||||
import menu from "@/data/dummy/keuangan.menu.json";
|
||||
import { ref } from "vue";
|
||||
import {ref} from "vue";
|
||||
|
||||
console.log(typeUser);
|
||||
console.log(role_menu);
|
||||
console.log(menu);
|
||||
const typeUser = ref<any[]>([]);
|
||||
$fetch("/api/setting/getTipeUser").then((res) => {
|
||||
console.log('uuu',res);
|
||||
typeUser.value = res;
|
||||
})
|
||||
// console.log(typeUser);
|
||||
// console.log(role_menu);
|
||||
// console.log(menu);
|
||||
|
||||
const detailType = (item) => {
|
||||
console.log(item); //simpan pinia
|
||||
@@ -23,7 +28,7 @@ const dialog = ref(false);
|
||||
<div class="d-flex justify-space-between">
|
||||
<template v-if="typeUser && typeUser.length > 0">
|
||||
<v-col v-for="(item, index) in typeUser" :key="index">
|
||||
<MasterCardList :item="item" @detail="detailType" />
|
||||
<MasterCardList :item="item" @detail="detailType"/>
|
||||
</v-col>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
||||
Reference in New Issue
Block a user