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> </n-tabs>
<!-- test result alert--> <!-- test result alert-->
<n-alert v-if="showTestConnSuccResult" title="" type="success"> <n-alert
{{ $t('conn_test_succ') }} v-if="showTestResult"
</n-alert> :title="isEmpty(testResult) ? '' : $t('conn_test_fail')"
<n-alert v-if="showTestConnFailResult" title="" type="error"> :type="isEmpty(testResult) ? 'success' : 'error'"
{{ $t('conn_test_fail') }}: {{ testResult }} >
<template v-if="isEmpty(testResult)"> {{ $t('conn_test_succ') }}</template>
<template v-else>{{ testResult }}</template>
</n-alert> </n-alert>
</n-spin> </n-spin>