update eventfetcher alert

This commit is contained in:
2023-11-23 18:49:37 +08:00
parent 979679532c
commit 4af2190e6d
6 changed files with 38 additions and 9 deletions

View File

@@ -37,6 +37,7 @@ import { computed, onMounted, ref } from 'vue'
import { saveAs } from 'file-saver'
import { List } from 'linqts'
import { isDarkMode } from '@/Utils'
import EventFetcherStatusCard from '@/components/EventFetcherStatusCard.vue'
enum EventType {
Guard,
@@ -174,11 +175,7 @@ onMounted(() => {
<NAlert v-if="!accountInfo?.isBiliVerified" type="warning"> 使用此功能前你需要先<NButton type="info" text @click="$router.push({ name: 'manage-biliVerify' })">认证Bilibili账号</NButton> </NAlert>
</NSpace>
<NDivider />
<NAlert title="EVENT-FETCHER 状态" :type="accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? 'success' : 'warning') : 'info'">
<NTag :type="accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? 'success' : 'warning') : 'error'">
{{ accountInfo?.eventFetcherOnline ? (accountInfo?.eventFetcherStatus == 'ok' ? '正常' : `异常: ${accountInfo.eventFetcherStatus}`) : '未连接' }}
</NTag>
</NAlert>
<EventFetcherStatusCard />
<NDivider />
<NCard size="small" style="witdh: 100%">
<template v-if="accountInfo?.eventFetcherOnline">