fix: test connection status flash

This commit is contained in:
tiny-craft 2023-08-23 15:44:14 +08:00
parent bb3316a67a
commit 4e2ff5930b
1 changed files with 7 additions and 5 deletions

View File

@ -238,11 +238,13 @@ const onClose = () => {
</n-tabs>
<!-- test result alert-->
<n-alert v-if="showTestConnSuccResult" title="" type="success">
{{ $t('conn_test_succ') }}
</n-alert>
<n-alert v-if="showTestConnFailResult" title="" type="error">
{{ $t('conn_test_fail') }}: {{ testResult }}
<n-alert
v-if="showTestResult"
:title="isEmpty(testResult) ? '' : $t('conn_test_fail')"
:type="isEmpty(testResult) ? 'success' : 'error'"
>
<template v-if="isEmpty(testResult)"> {{ $t('conn_test_succ') }}</template>
<template v-else>{{ testResult }}</template>
</n-alert>
</n-spin>