fix: loading in daftar gangguan dialihkan ke posko lain

This commit is contained in:
kur0nek-o
2024-04-01 10:38:08 +07:00
parent 0b1df3f0e6
commit da2df8a6c0
4 changed files with 70 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
<template>
<main
class="flex flex-col justify-between flex-1 px-4 overflow-y-auto bg-white lg:mr-3 sm:px-3 lg:px-6 rounded-t-2xl lg:rounded-t-3xl no-scroll-bar"
class="flex flex-col justify-between flex-1 px-4 overflow-y-auto bg-white lg:mr-3 sm:px-3 lg:px-6 rounded-t-2xl lg:rounded-t-3xl no-scroll-bar relative"
>
<div v-if="route.path !== '/home'" class="mt-4 lg:mt-6 max-w-7xl">
<h1 class="text-lg font-semibold md:text-xl text-dark">{{ pageTitle }}</h1>
@@ -12,8 +12,8 @@
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import { computed } from 'vue'
import { useRoute } from 'vue-router'
// Dapatkan objek route dari vue-router
const route = useRoute()