mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-11 12:08:30 +08:00
Initial commit
This commit is contained in:
18
frontend/src/views/shared/HealthMonitor.vue
Normal file
18
frontend/src/views/shared/HealthMonitor.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div class="space-y-6 pb-8">
|
||||
<HealthMonitorCard
|
||||
title="健康监控"
|
||||
:is-admin="isAdminPage"
|
||||
:show-provider-info="isAdminPage"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import HealthMonitorCard from '@/features/providers/components/HealthMonitorCard.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const isAdminPage = computed(() => route.path.startsWith('/admin'))
|
||||
</script>
|
||||
Reference in New Issue
Block a user